conducting-man-in-the-middle-attack-simulation

Warn

Audited by Gen Agent Trust Hub on Aug 4, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes privileged system commands to alter network configurations, including sudo sysctl -w net.ipv4.ip_forward=1 to enable packet forwarding and sudo iptables to redirect TCP traffic (ports 80, 443) to local interceptors.
  • [COMMAND_EXECUTION]: The Python script scripts/agent.py utilizes dynamic module loading via __import__("time") to manage timing during the ARP spoofing loop.
  • [DATA_EXFILTRATION]: The workflow describes the interception of cleartext network traffic and the logging of potentially sensitive POST data and session cookies to local files (captured_forms.log and captured_cookies.log).
  • [CREDENTIALS_UNSAFE]: The skill implements automated credential extraction, storing intercepted authentication tokens and form data in plain-text logs on the local filesystem without encryption.
  • [PROMPT_INJECTION]: The skill creates an ingestion point for untrusted network data by sniffing traffic using Scapy and mitmproxy. This establishes an indirect injection surface where malicious payloads embedded in network traffic could influence the agent's behavior during analysis.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Aug 4, 2026, 08:22 PM
Security Audit — agent-trust-hub — conducting-man-in-the-middle-attack-simulation