offensive-tls-attacks
Skill này làm gì
Skill này là phương pháp kiểm tra cài đặt TLS và SSL trên các dịch vụ mạng và ứng dụng di động. Nó bao quát giao thức cũ, bộ mật mã yếu, kiểm tra chứng chỉ và các lỗ hổng TLS đã biết. Nó dành cho chuyên gia bảo mật rà soát mã hóa khi truyền tải khi có sự cho phép.
Khi nào nên dùng
- ✓Khi bạn muốn kiểm tra một máy chủ về phiên bản SSL hoặc TLS cũ và bộ mật mã yếu.
- ✓Khi bạn cần kiểm tra xem một ứng dụng di động có xác thực chứng chỉ đúng cách không.
- ✓Khi bạn muốn xác nhận chuỗi chứng chỉ và kiểm tra tên máy chủ của máy chủ được thiết lập đúng.
Liên kết skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/crypto/offensive-tls-attacks/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chúng tôi được ủy quyền kiểm tra cài đặt TLS của máy chủ web. Kiểm tra giao thức cũ và mật mã yếu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill bắt đầu bằng việc liệt kê các giao thức, bộ mật mã và chuỗi chứng chỉ mà máy chủ hỗ trợ. Sau đó nó kiểm tra các phiên bản đã lỗi thời và lỗ hổng đã biết, rồi ghi lại phát hiện cùng các bản sửa cần ưu tiên.
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.
TLS/SSL Attacks and Misconfiguration Exploitation
You are performing offensive TLS/SSL analysis against target infrastructure. This skill covers the full attack surface of transport layer security -- from protocol-level cryptographic weaknesses to implementation bugs, certificate validation failures, and deployment misconfigurations. You treat every TLS handshake as an opportunity for enumeration and every certificate chain as a trust boundary to probe.
Quick Workflow
- Enumerate the target's TLS configuration -- supported protocols, cipher suites, certificate chain, extensions.
- Identify deprecated protocols (SSLv2, SSLv3, TLS 1.0, TLS 1.1) and weak cipher suites (export, NULL, RC4, DES, 3DES).
- Check for known protocol vulnerabilities -- POODLE, DROWN, FREAK, BEAST, Heartbleed.
- Test compression oracle exposure -- CRIME at the TLS layer, BREACH at the HTTP layer.
- Validate certificate handling -- chain verification, hostname matching, pinning enforcement, revocation checking.
- Assess TLS 1.3 features -- 0-RTT replay, downgrade sentinel presence, supported groups.
- For mobile targets, bypass certificate pinning and intercept traffic.
- Document findings with protocol evidence and remediation priorities.
TLS Enumeration and Scanning
Begin every TLS engagement with comprehensive enumeration. Use testssl.sh as the primary tool -- it requires no dependencies beyond bash and OpenSSL and produces detailed output covering protocols, ciphers, vulnerabilities, and certificate details.
# Full scan with all checks, output to JSON and HTML
testssl.sh --jsonfile results.json --htmlfile results.html \
--ip one --sneaky --warnings batch \
target.com:443
# Quick protocol and cipher check
testssl.sh --protocols --ciphers target.com:443
# Check only for specific vulnerabilities
testssl.sh --heartbleed --ccs-injection --ticketbleed \
--robot --poodle --beast --crime --breach --drown --freak \
--logjam --sweet32 target.com:443
# Scan multiple targets from a file
testssl.sh --file targets.txt --parallel 10 --jsonfile bulk_results.json
Use sslyze for Python-integrated scanning and CI/CD pipeline integration:
# Standard scan with all plugins
sslyze --regular target.com
# JSON output for programmatic processing
sslyze --json_out results.json target.com
# Check specific vulnerability classes
sslyze --heartbleed --openssl_ccs --robot target.com
# Scan with client certificate authentication
sslyze --cert /path/to/client.pem --key /path/to/client.key target.com
Use sslscan for rapid cipher enumeration and tlsx for high-speed probing at scale:
# sslscan quick enumeration
sslscan --no-fallback target.com:443
# tlsx high-speed probing across many hosts
cat hosts.txt | tlsx -p 443,8443,9443 -json -o tls_results.json
# tlsx specific checks
cat hosts.txt | tlsx -san -cn -so -json # Extract SANs, CNs, server orgs
cat hosts.txt | tlsx -tls-version tls10 # Find hosts still accepting TLS 1.0
cat hosts.txt | tlsx -expired -self-signed -mismatched # Certificate issues
Protocol Downgrade Attacks
Protocol downgrade attacks force a TLS connection to negotiate a weaker protocol version that has known vulnerabilities. These attacks exploit the backward-compatible fallback mechanisms built into TLS.
POODLE (CVE-2014-3566) exploits the non-deterministic padding in SSLv3 CBC mode. Unlike TLS, SSLv3 does not specify the padding byte values, and the receiver does not verify them -- only the padding length byte matters. This allows an active attacker to decrypt one byte of plaintext per 256 requests on average.
# Check if the target supports SSLv3
testssl.sh --poodle target.com:443
openssl s_client -ssl3 -connect target.com:443
# TLS POODLE variant: check for CBC padding oracle in TLS implementations
testssl.sh --poodle target.com:443
# Look for "POODLE, TLS" in output -- indicates vulnerable TLS implementation
DROWN (CVE-2016-0800) is a cross-protocol attack. If a server (or any server sharing the same RSA key) supports SSLv2, an attacker can decrypt passively captured TLS sessions. The attack adapts Bleichenbacher's RSA padding oracle using SSLv2 export cipher handshakes.
# Check for SSLv2 support (direct DROWN)
testssl.sh --drown target.com:443
# Check with OpenSSL (requires a build with SSLv2 enabled)
openssl s_client -ssl2 -connect target.com:443
# General DROWN also applies when another server shares the same RSA key
# Extra
Câu hỏi thường gặp
Nó dùng công cụ nào để quét?
Nó dùng testssl.sh làm công cụ quét chính, và công cụ này không cần phụ thuộc gì.
Nó có bao quát ứng dụng di động không?
Có. Nó bao quát kiểm tra ghim chứng chỉ (certificate pinning) và chặn lưu lượng cho các mục tiêu di động.
Đây có chỉ dành cho kiểm thử được ủy quyền không?
Có. Skill được viết cho các đánh giá có văn bản cho phép.
Chi tiết
Mô tả gốc của tác giả
Comprehensive methodology for auditing and exploiting TLS/SSL implementations and misconfigurations across network services and mobile applications. Covers protocol downgrade attacks including POODLE (CVE-2014-3566) against SSLv3 CBC padding, DROWN (CVE-2016-0800) cross-protocol attack leveraging SSLv2 export ciphers to decrypt TLS sessions, and FREAK (CVE-2015-0204) forcing RSA export-grade key exchange. Addresses BEAST (CVE-2011-3389) exploiting CBC IV predictability in TLS 1.0, CRIME (CVE-2012-4929) and BREACH targeting TLS-level and HTTP-level compression oracles respectively, and Heartble
repo: SnailSploit/Claude-Red
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11954
- Giấy phép
- MIT
- Cập nhật
- 12/10/2026
Bình luận
- …
Thêm skill từ kho mã này
offensive-active-directory
10kLên kế hoạch kiểm thử bảo mật Active Directory được ủy quyền, từ lập bản đồ mạng đến tìm đường tấn công tới Domain Admin.
offensive-netexec
10kGiúp agent của bạn dùng công cụ NetExec (nxc) cho kiểm thử mạng được ủy quyền, bao gồm các giao thức, xác thực và kiểm tra thông tin xác thực.
offensive-api-abuse
10kLên kế hoạch kiểm thử API được ủy quyền để tìm lạm dụng logic nghiệp vụ, rủi ro GraphQL và điều kiện đua.
offensive-api-security
10kChạy kiểm thử bảo mật được ủy quyền trên API REST, gRPC và WebSocket, dựa trên OWASP API Top 10.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.