Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #13931

opsec

Skill này làm gì

Hướng dẫn này giải thích an ninh hoạt động (OPSEC) cho các kiểm thử bảo mật được ủy quyền, bao gồm kiểm tra phạm vi, nhịp độ quét và xử lý bằng chứng. Hướng dẫn dành cho người kiểm thử bảo mật cần công việc được kiểm soát và ghi chép đầy đủ.

Khi nào nên dùng

  • ✓Khi một đội chuẩn bị kiểm thử được ủy quyền và cần danh sách kiểm tra về phạm vi và nhịp độ.
  • ✓Khi một lần quét có thể kích hoạt cảnh báo hoặc ảnh hưởng hệ thống sản xuất và nên được làm chậm lại.
  • ✓Khi một bài kiểm thử cần được ghi chép đủ tốt để chứng minh rằng nó đã được ủy quyền.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/shared/opsec/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trước khi bắt đầu kiểm thử được ủy quyền, bạn có thể kiểm tra giúp chúng tôi phạm vi, tốc độ quét và kế hoạch ghi chép không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent làm theo danh sách kiểm tra về quy tắc tham gia, phạm vi và khung giờ kiểm thử, rồi gợi ý tốc độ quét và cách ghi chép phù hợp với mục tiêu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Cần xác nhận điều gì trước khi kiểm thử?

Hướng dẫn liệt kê quy tắc tham gia bằng văn bản, phạm vi rõ ràng, tài sản ngoài phạm vi, khung giờ kiểm thử và đầu mối liên hệ của khách hàng.

Vì sao phải giới hạn tốc độ quét?

Quét nhanh có thể kích hoạt cảnh báo và ảnh hưởng hệ thống sản xuất, nên hướng dẫn đề nghị tốc độ chậm hơn cho mục tiêu nhạy cảm.

Vì sao phải ghi chép mọi thứ?

Hướng dẫn nói rằng nếu không thể chứng minh một bài kiểm thử đã được ủy quyền, thì không nên coi nó là đã được ủy quyền.

Chi tiết

Mô tả gốc của tác giả

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

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#13931
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự