agent-security-hardening
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
Working on the HTTP capture proxy and its replay/fuzz path: the egress guard that stops the proxy becoming an SSRF pivot, why it checks the resolved IP, and keeping capture off the scan's critical path. Trigger: editing scanners/capture_proxy/ (capture_addon.py, egress.py, ingest_worker.py); adding a forward/replay/fuzz path; changing EgressPolicy or the internal denylist; wiring an agent tool that replays captured traffic.
The one-line "route every egress through the guard" rule is in the capture_proxy AGENTS.md CRITICAL RULES; this skill is the mechanism.
request. mitmproxy dials from
server_connect alone, and a CONNECT tunnel, raw TCP, the DNS layer and a body
large enough to stream all reach the upstream without a request hook first:
keep every upstream dial behind server_connect, take anything off a request in
requestheaders, and never set flow.server_conn.address in request. The
proxy serves every person's Kali sandbox on that sandbox's network, so the
sandbox pool 10.214.0.0/16 stays in its always-on denylist.EgressPolicy guard as captured traffic, or the agent can be steered into an
internal pivot. Args must not reach the wire un-guarded.EgressPolicy (surfaced in settings); loosen it
there, per-condition, not by deleting the check.| Stage | File | Note |
|---|---|---|
| intercept | capture_addon.py | mitmproxy addon. requestheaders takes the tag off and checks every name the client gives (each Host header, :authority) before a large body can stream; request checks the request; server_connect checks the real target of every upstream dial (CONNECT tunnels, raw TCP and the DNS layer included) against the same rules and pins the dial to the checked IP; response records |
| egress guard | egress.py | resolved-IP denylist + EgressPolicy toggles; the SSRF backstop |
| ingest | ingest_worker.py | tails the spool -> Postgres; off the scan path |
docker compose --profile capture build capture-proxy # image rebuild (Dockerfile change, or a change to
# recon_orchestrator/hard_guardrail.py, which it bundles)
./redamon.sh test unit # capture_proxy section
A build alone does not swap the running proxy: the orchestrator spawns it, not compose. Stop and start traffic capture once after a rebuild so it is recreated from the new image; that interrupts every session's capture.
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
RUruvnet/RuView106k596 new stars in the last 7 days