Skip to content
Skillpedia
Security6.5k Β· #13931

opsec

What it does

This guide explains operational security for authorized security tests, including scope checks, scan pacing and evidence handling. It is for security testers who need their work to stay controlled and documented.

When to use it

  • βœ“When a team is preparing an authorized test and needs a scope and pacing checklist.
  • βœ“When a scan could trigger alerts or affect a production system and should be slowed down.
  • βœ“When a test must be documented well enough to prove that it was authorized.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/shared/opsec/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/shared/opsec/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œBefore we start our authorized test, can you check our scope, scan pace and documentation plan?”

5 new skills a week. 1 minute to read.

How it works

The agent works through a checklist of rules of engagement, scope and testing windows, then suggests a scan rate and documentation practice that fit the target.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Operational Security (OPSEC) Knowledge Base

OPSEC ensures the red team engagement remains covert, controlled, and within authorized scope. Poor OPSEC burns the engagement β€” detected scans alert the blue team, taint findings, and waste client resources. This skill applies across all recon phases.

1. Core OPSEC Principles

The OPSEC Mindset

  1. Every packet is a signal β€” assume the target has IDS/IPS, SIEM, and SOC analysts
  2. Minimize footprint β€” collect only what you need, no more
  3. Blend with normal traffic β€” timing, volume, and patterns should look legitimate
  4. Know your tools' signatures β€” every scanner has a fingerprint
  5. Document everything β€” if you can't prove it was authorized, it wasn't

Engagement Scope Awareness

Before ANY active operation:

  • Written Rules of Engagement (ROE) on file
  • Target IP ranges and domains explicitly listed
  • Out-of-scope assets clearly identified
  • Testing window defined (dates, times)
  • Emergency contact for the client (for accidental impact)
  • Get-out-of-jail letter accessible

2. Network OPSEC

Scan Rate Limiting

Target Type Recommended Rate Timing Flag
Production web server 5-10 req/sec nmap -T2
Internal network 50-100 req/sec nmap -T3
Development/staging 100+ req/sec nmap -T4
High-security target 1-2 req/sec nmap -T1
WAF-protected 1-5 req/sec Custom delays

Traffic Shaping

# nmap with specific rate limiting
nmap -sS --max-rate 10 --max-retries 1 -p 80,443 <target>

# ffuf with rate limiting
ffuf -u https://<target>/FUZZ -w wordlist.txt -rate 5

# nuclei with rate limiting
nuclei -u https://<target> -rl 5 -c 2

# curl with delay between requests
for url in $(cat urls.txt); do
    curl -s -o /dev/null -w "%{http_code} $url\n" "$url"
    sleep 2
done

Timing Considerations

  • Business hours (9am-5pm target timezone): Higher baseline traffic β†’ scanning blends in
  • Weekends/holidays: Lower baseline β†’ scans stand out more
  • Maintenance windows: If known, ideal for aggressive scanning
  • Burst vs sustained: Short bursts with long pauses are less detectable than sustained scanning

3. HTTP OPSEC

User-Agent Management

Important: User-Agent strings become stale quickly. Always use current browser version strings that match real-world traffic at the time of engagement. Check your own browser's UA or query a live UA database before starting.

# Step 1: Get a current, real User-Agent from your own browser or a live source
# Option A: Copy from your browser's DevTools (Network tab β†’ Request Headers)
# Option B: Use a curated list β€” update version numbers to match current releases

# Step 2: Build a rotation list with CURRENT versions
# Template β€” replace <CHROME_VER> and <FIREFOX_VER> with latest stable versions
UA_LIST=(
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<CHROME_VER> Safari/537.36"
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<CHROME_VER> Safari/537.36"
    "Mozilla/5.0 (X11; Linux x86_64; rv:<FIREFOX_VER>) Gecko/20100101 Firefox/<FIREFOX_VER>"
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:<FIREFOX_VER>) Gecko/20100101 Firefox/<FIREFOX_VER>"
)
UA="${UA_LIST[$RANDOM % ${#UA_LIST[@]}]}"

curl -s -A "$UA" https://<target>/

# ffuf with custom user agent
ffuf -u https://<target>/FUZZ -w wordlist.txt -H "User-Agent: $UA"

Header Hygiene

# Avoid tool-specific headers that reveal scanner identity
# BAD: Default tool user agents
# - "Nmap Scripting Engine"
# - "nikto"
# - "gobuster"
# - "sqlmap"

# GOOD: Mimic real browser headers (use current browser versions!)
curl -s https://<target>/ \
    -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/<CURRENT_VER> Safari/537.36" \
    -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" \
    -H "Accept-Language: en-US,en;q=0.9" \
    -H "Accept-Encoding: gzip, deflate, br"

4. Tool Signature Awareness

Common IDS/WAF Signatures

Tool Detection Signature Mitigation
nmap SYN scan pattern, probe ordering Use -T2, --data-length
nikto Default User-Agent, predictable paths Custom UA, selective tuning
sqlmap Parameter tampering patterns Not applica
FAQ

What should be confirmed before testing?

The guide lists written rules of engagement, explicit scope, out-of-scope assets, a testing window and a client contact.

Why limit the scan rate?

Fast scans can trigger alerts and affect production systems, so the guide suggests slower rates for sensitive targets.

Why document everything?

The guide says that if you cannot prove a test was authorized, it should not be treated as authorized.

Details

Original description by the author

Operational security management β€” traffic shaping, scan rate limiting, source IP management, tool signature avoidance, evidence handling, anti-detection patterns.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#13931
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills