本文へスキップ
Skillpedia
セキュリティ6.5k · #13931

opsec

できること

このガイドは、認可されたセキュリティテストの運用上のセキュリティを説明します。範囲の確認、スキャンの速度調整、証拠の扱いを含みます。作業を統制された形で、文書化しておく必要があるセキュリティテスター向けです。

使う場面

  • ✓認可されたテストを準備し、範囲とペースのチェックリストが必要なとき。
  • ✓スキャンがアラートを引き起こしたり、本番システムに影響したりする可能性があり、速度を落とすべきとき。
  • ✓テストが認可されていたことを証明できるよう、十分に記録する必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/shared/opsec/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“認可されたテストを始める前に、当社の範囲、スキャンの速度、文書化の計画を確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、交戦ルール、範囲、テスト時間帯のチェックリストを順に確認します。その後、対象に合うスキャン速度と文書化の方法を提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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
よくある質問

テストの前に何を確認すべきですか?

書面の交戦ルール、明確な範囲、範囲外の資産、テスト時間帯、顧客側の連絡先を挙げています。

なぜスキャン速度を制限するのですか?

速いスキャンはアラートを引き起こし、本番システムに影響しうるため、機密性の高い対象では遅い速度を勧めています。

なぜすべて文書化するのですか?

テストが認可されていたことを証明できなければ、認可されたものとして扱うべきではないと資料は述べています。

詳細

作者による元の説明

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

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#13931
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル