Create 00021
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318{ "id": "offstep-mitm-001", "schema_version": "1.0", "engagement_meta": { "environment_type": "owned", "target_profile": { "category": "internal_network", "tech_stack": [ "TCP/IP", "ARP", "HTTP/HTTPS" ] }, "offensive_objective": "data_access" }, "memory_in": { "assets": [], "credentials": [], "tool_state": { "bettercap": { "installed": true, "version": "latest" }, "custom_wrappers": { "available": [ "mitm_arp_spoof_wrapper", "mitm_sniff_wrapper" ] } }, "offensive_findings": [], "failed_strategies": [], "constraints": [ "Avoid causing network-wide DoS" ] }, "task": { "instruction": "Intercept and sniff cleartext credentials from the target asset.", "target_asset_id": "{{TARGET_ASSET}}", "offensive_goal_type": "data_access", "success_criteria": [ "Successful ARP spoofing of target and gateway", "Capture of cleartext credentials from HTTP traffic" ] }, "adaptive_reasoning": { "complexity": { "tier": "medium", "signals": [ "Target IP unknown", "Gateway IP unknown" ], "reasoning_budget": "moderate" }, "offensive_cost_profile": { "time_cost": "low", "stealth_cost": "medium", "complexity_cost": "low", "acceptable_cost_level": "medium" } }, "cot": { "tier_1_context_and_mythos_analysis": { "context_summary": "The objective is to intercept traffic from {{TARGET_ASSET}}. The network uses ARP, which is inherently trust-based and vulnerable to spoofing.", "mythos_vulnerability_patterns": [ { "name": "arp_trust_model_weakness", "description": "ARP does not authenticate responses, allowing an attacker to claim ownership of any IP on the local segment.", "evidence_matches": [ "Standard Ethernet/IP network environment" ], "evidence_conflicts": [] } ], "vulnerability_hypotheses": [ { "hypothesis": "By spoofing the gateway and the target, all traffic between them will be routed through the attacker's machine.", "pattern_sources": [ "arp_trust_model_weakness" ], "supporting_evidence": [ "Lack of DAI (Dynamic ARP Inspection) on typical internal switches" ], "conflicting_evidence": [], "confidence": 0.9 } ], "mythos_self_check": { "overreach_flags": [ "Assumes no static ARP entries are configured on the target" ], "refinement_actions": [ "Verify if the target is a critical server which might have static ARP entries." ] } }, "tier_2_attack_chain_selection": { "candidate_chains": [ { "chain_id": "mitm-arp-sniff-01", "description": "ARP Spoofing -> IP Forwarding -> Traffic Sniffing", "target_vulnerability_hypothesis": "ARP trust model allows traffic redirection.", "steps": [ { "order": 1, "phase": "recon", "wrapper_name": "user_interaction_wrapper", "input_role": "request_target_info", "expected_output_role": "target_and_gateway_ips", "notes": "Request {{TARGET_IP}} and {{GATEWAY_IP}} from user." }, { "order": 2, "phase": "exploit", "wrapper_name": "mitm_arp_spoof_wrapper", "input_role": "target_and_gateway_ips", "expected_output_role": "spoofing_active", "notes": "Execute bettercap arp.spoof module." }, { "order": 3, "phase": "exploit", "wrapper_name": "mitm_sniff_wrapper", "input_role": "interface", "expected_output_role": "captured_credentials", "notes": "Execute bettercap net.sniff module." } ], "estimated_effectiveness": 0.8, "estimated_cost": { "time": "low", "stealth": "medium", "complexity": "low" } } ], "selected_chain_id": "mitm-arp-sniff-01", "selection_rationale": "Most direct method to intercept local network traffic without requiring physical access." }, "tier_3_offensive_wrapper_design": { "wrapper_specs": [ { "name": "mitm_arp_spoof_wrapper", "intent": "Redirect traffic between target and gateway", "category": "exploit", "inputs": [ { "name": "target_ip", "type": "string", "required": true }, { "name": "gateway_ip", "type": "string", "required": true } ], "outputs": [ { "name": "status", "type": "string" } ], "dependencies": [ "bettercap" ], "offensive_notes": "Sets bettercap to full-duplex spoofing to ensure bidirectional traffic flow." } ] }, "tier_4_wrapper_implementation": { "code_snippets": [ { "name": "mitm_arp_spoof_wrapper", "language": "bash", "code": "bettercap -iface eth0 -eval \"set arp.spoof.targets $1; set arp.spoof.fullduplex true; arp.spoof on\"" } ], "implementation_rationale": "Uses bettercap's internal scripting engine to automate the spoofing process." }, "tier_5_attack_effectiveness_risk_and_fallback": { "expected_offensive_outcome": "Successful interception of HTTP traffic from {{TARGET_ASSET}}.", "assumptions": [ "Target is using unencrypted HTTP for some services.", "Attacker is on the same Layer 2 segment." ], "potential_failure_modes": [ "Target uses HTTPS with HSTS, preventing cleartext sniffing.", "Network employs Port Security or DAI." ], "fallback_strategies": [ { "trigger_condition": "No cleartext traffic captured", "fallback_chain_reference": "mitm-dns-spoof-01", "priority": 1 } ], "mythos_reassessment_logic": "If ARP spoofing fails, the hypothesis of a trust-based ARP model is disproven; investigate if the network uses static ARP or 802.1X." } }, "execution_trace": { "executed_chain_id": "mitm-arp-sniff-01", "steps": [ { "order": 1, "wrapper_name": "user_interaction_wrapper", "input": { "prompt": "Please provide the IP address of the target asset and the network gateway." }, "output": { "target_ip": "10.0.2.5", "gateway_ip": "10.0.2.1" }, "status": "success", "observations": [ "User provided target and gateway IPs." ] }, { "order": 2, "wrapper_name": "mitm_arp_spoof_wrapper", "input": { "target_ip": "10.0.2.5", "gateway_ip": "10.0.2.1" }, "output": { "status": "spoofing_active" }, "status": "success", "observations": [ "ARP spoofing initiated via bettercap." ] }, { "order": 3, "wrapper_name": "mitm_sniff_wrapper", "input": { "interface": "eth0" }, "output": { "captured_data": "POST /login HTTP/1.1\nHost: internal.site\n\nuser=admin&pass=password123" }, "status": "success", "observations": [ "HTTP POST request intercepted containing credentials." ] } ], "chain_outcome": "success", "chain_outcome_notes": "Credentials successfully intercepted via ARP spoofing." }, "validation": { "code_validation": { "syntax_valid": true, "tool_invocations_valid": true, "wrapper_spec_consistency": true }, "data_validation": { "parsed_output_consistent": true, "no_contradictions_with_memory": true, "mythos_hypotheses_grounded": true }, "chain_validation": { "selection_consistent_with_objective": true, "selection_consistent_with_mythos_analysis": true, "cost_vs_effectiveness_reasonable": true }, "verdict": { "passed": true, "score": 1.0 } }, "memory_out": { "assets": [ { "id": "target-01", "role": "workstation", "ip": "10.0.2.5", "ports": [], "services": [], "tags": [ "compromised" ] } ], "credentials": [ { "scope": "app", "username": "admin", "quality": "valid" } ], "tool_state": { "bettercap": { "installed": true, "version": "latest" } }, "offensive_findings": [ { "asset_id": "target-01", "category": "credential_leak", "detail": "Cleartext credentials captured via MiTM ARP spoofing." } ], "failed_strategies": [], "constraints": [ "must remain undetected by network monitoring" ], "mythos_learning": { "confirmed_patterns": [ "arp_trust_model_weakness" ], "disproven_patterns": [], "notes": "Confirmed that the local network does not implement DAI or similar ARP protections." } }}offensive/00021Added+318