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

Featured

Simulates man-in-the-middle attacks using Ettercap, mitmproxy, and Bettercap in authorized environments to intercept, analyze, and modify network traffic for testing encryption enforcement, certificate validation, and detection capabilities.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Conducting Man-in-the-Middle Attack Simulation ## When to Use - Testing whether applications properly validate TLS certificates and enforce encrypted communications - Demonstrating the risk of cleartext protocols (HTTP, FTP, Telnet, SMTP) to organization stakeholders - Validating that HSTS, certificate pinning, and other anti-MITM controls are correctly implemented - Assessing network detection capabilities for ARP spoofing, DHCP spoofing, and DNS spoofing attacks - Training incident response teams to identify and respond to MITM attack indicators **Do not use** on production networks without explicit written authorization and a rollback plan, against systems you do not own or have permission to test, or for intercepting communications of uninvolved third parties. ## Prerequisites - Written authorization specifying in-scope targets and approved MITM techniques - Bettercap 2.x, Ettercap, and mitmproxy installed on the attacker machine - Layer 2 access to the same network segment as target hosts - Custom CA certificate for TLS interception testing (generated specifically for the engagement) - Wireshark or tshark for capturing and verifying intercepted traffic - Isolated lab environment or approved production test window with rollback procedures ## Workflow ### Step 1: Set Up the Attack Environment ```bash # Enable IP forwarding sudo sysctl -w net.ipv4.ip_forward=1 sudo sysctl -w net.ipv6.conf.all.forwarding=1 # Disable ICMP redirects sudo sysctl -w net.ipv4.conf.all....

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category