TL;DR
- 目的:A cryptographic audit systematically reviews an application's use of cryptographic primitives, protocols, and key management to identify vul…
- 适用:云/K8s/容器/配置审计
- 输入:目标 URL + 端点/参数清单
- 输出:配置审计报告 + 修复建议
- 红线:仅限授权范围内;扫描限速
-c 10 -rl 10;所有动作记 oplog
- 关联:上游:003-src-session-start → 下游:043-hunt-nosqli, 027-hunt-cors, 028-hunt-csrf
Performing Cryptographic Audit of Application
Quick Start
# 通用 Web 漏洞测试命令
curl -v http://target.com | head -20
Overview
A cryptographic audit systematically reviews an application's use of cryptographic primitives, protocols, and key management to identify vulnerabilities such as weak algorithms, insecure modes, hardcoded keys, insufficient entropy, and protocol misconfigurations. This skill covers building an automated crypto audit tool that scans Python and configuration files for common cryptographic weaknesses.
When to Use
- When conducting security assessments that involve performing cryptographic audit of application
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Familiarity with cryptography concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Objectives
- Detect usage of deprecated algorithms (MD5, SHA-1, DES, RC4)
- Identify insecure cipher modes (ECB) and padding schemes
- Find hardcoded keys, passwords, and secrets in source code
- Verify TLS/SSL configuration strength
- Check key derivation function parameters
- Validate random number generator usage
- Produce a structured audit report with findings and remediation
Key Concepts
Cryptographic Weakness Categories
| Category |
Examples |
Risk Level |
| Weak Hashing |
MD5, SHA-1 for integrity/signatures |
High |
| Insecure Encryption |
DES, 3DES, RC4, Blowfish |
High |
| Bad Cipher Mode |
ECB mode for any block cipher |
High |
| Insufficient Key Size |
RSA < 2048, AES-128 for long-term |
Medium |
| Hardcoded Secrets |
Keys/passwords in source code |
Critical |
| Weak KDF |
Low iteration PBKDF2, plain MD5 |
High |
| Poor Entropy |
time-based seeds, predictable IVs |
High |
| Deprecated Protocols |
SSLv3, TLS 1.0, TLS 1.1 |
High |
Security Considerations
- Review both application code and configuration files
- Check third-party dependencies for known crypto vulnerabilities
- Verify certificates and TLS configurations on deployed servers
- Ensure secrets are loaded from environment variables or vaults
- Review key storage and rotation practices
Validation Criteria
Output Format
{
"vulnerability_type": "<class>",
"endpoint": "<URL with vulnerable parameter>",
"poc": "<minimal reproducible payload>",
"impact": "<data disclosed / privilege / RCE / bypass>",
"cvss_score": "<0.0-10.0>",
"remediation": "<concise fix recommendation>"
}
Save findings to share/intel/findings/<target>-<timestamp>.md and follow the report template selected at session start.
Workflow
- Recon — Identify the target endpoint via
96-osint-methodology or 009-osint-with-spiderfoot
- Fingerprint — Confirm component/version using
01-component-nday or Burp Suite passive detection
- Probe — Send payload variations matching the vulnerability class
- Verify — Run
111-fp-check to confirm with second tool
- Document — Fill report template (project-pentest / cnvd-common / edusrc / butian)
- Submit — Manual submission (never auto-submit)
Tools & Systems
- Burp Suite Pro / Community — Intercepting proxy, scanner, and Repeater for manual testing
- OWASP ZAP — Open-source alternative to Burp with active scanner
- sqlmap — Automated SQL injection detection (for hunt-sqli)
- Nuclei — Template-based vulnerability scanner
- ffuf — Fast web fuzzer for endpoint discovery
- curl / wget — Manual HTTP request crafting
- httpx — HTTP probing and fingerprinting
Run all tools with -rate-limit 20 to avoid OPSEC issues. For deeper investigation, prefer manual testing with Burp over automated scanners (lower false-positive rate).
Advanced Techniques
Chained Vulnerability Exploitation
Combine multiple low-severity findings (open redirect + cookie theft + session hijacking) to demonstrate high-impact chains in reporting.
WAF Evasion Patterns
Use case variations, encoding (URL, double-URL, Unicode), chunked transfer, and parameter pollution to bypass WAF/IDS during testing.
1---2name: performing-cryptographic-audit-of-application3description: Perform performing cryptographic audit of application assessment during authorized security testing. Use this skill when indicators of the vulnerability class are present in the target environment.4license: Apache-2.05---67## TL;DR89- **目的**:A cryptographic audit systematically reviews an application's use of cryptographic primitives, protocols, and key management to identify vul…10- **适用**:云/K8s/容器/配置审计11- **输入**:目标 URL + 端点/参数清单12- **输出**:配置审计报告 + 修复建议13- **红线**:仅限授权范围内;扫描限速 `-c 10 -rl 10`;所有动作记 oplog14- **关联**:上游:003-src-session-start → 下游:043-hunt-nosqli, 027-hunt-cors, 028-hunt-csrf1516# Performing Cryptographic Audit of Application1718## Quick Start1920```bash21# 通用 Web 漏洞测试命令22curl -v http://target.com | head -2023```2425## Overview2627A cryptographic audit systematically reviews an application's use of cryptographic primitives, protocols, and key management to identify vulnerabilities such as weak algorithms, insecure modes, hardcoded keys, insufficient entropy, and protocol misconfigurations. This skill covers building an automated crypto audit tool that scans Python and configuration files for common cryptographic weaknesses.282930## When to Use3132- When conducting security assessments that involve performing cryptographic audit of application33- When following incident response procedures for related security events34- When performing scheduled security testing or auditing activities35- When validating security controls through hands-on testing3637## Prerequisites3839- Familiarity with cryptography concepts and tools40- Access to a test or lab environment for safe execution41- Python 3.8+ with required dependencies installed42- Appropriate authorization for any testing activities4344## Objectives4546- Detect usage of deprecated algorithms (MD5, SHA-1, DES, RC4)47- Identify insecure cipher modes (ECB) and padding schemes48- Find hardcoded keys, passwords, and secrets in source code49- Verify TLS/SSL configuration strength50- Check key derivation function parameters51- Validate random number generator usage52- Produce a structured audit report with findings and remediation5354## Key Concepts5556### Cryptographic Weakness Categories5758| Category | Examples | Risk Level |59|----------|----------|------------|60| Weak Hashing | MD5, SHA-1 for integrity/signatures | High |61| Insecure Encryption | DES, 3DES, RC4, Blowfish | High |62| Bad Cipher Mode | ECB mode for any block cipher | High |63| Insufficient Key Size | RSA < 2048, AES-128 for long-term | Medium |64| Hardcoded Secrets | Keys/passwords in source code | Critical |65| Weak KDF | Low iteration PBKDF2, plain MD5 | High |66| Poor Entropy | time-based seeds, predictable IVs | High |67| Deprecated Protocols | SSLv3, TLS 1.0, TLS 1.1 | High |6869## Security Considerations7071- Review both application code and configuration files72- Check third-party dependencies for known crypto vulnerabilities73- Verify certificates and TLS configurations on deployed servers74- Ensure secrets are loaded from environment variables or vaults75- Review key storage and rotation practices7677## Validation Criteria7879- [ ] Scanner detects all injected test weaknesses80- [ ] MD5/SHA-1 usage for security purposes is flagged81- [ ] ECB mode usage is flagged82- [ ] Hardcoded keys/passwords are detected83- [ ] Weak KDF parameters are identified84- [ ] Report includes severity, location, and remediation85- [ ] False positive rate is below 10%8687## Output Format8889```json90{91 "vulnerability_type": "<class>",92 "endpoint": "<URL with vulnerable parameter>",93 "poc": "<minimal reproducible payload>",94 "impact": "<data disclosed / privilege / RCE / bypass>",95 "cvss_score": "<0.0-10.0>",96 "remediation": "<concise fix recommendation>"97}98```99100Save findings to `share/intel/findings/<target>-<timestamp>.md` and follow the report template selected at session start.101102## Workflow1031041. **Recon** — Identify the target endpoint via `96-osint-methodology` or `009-osint-with-spiderfoot`1052. **Fingerprint** — Confirm component/version using `01-component-nday` or Burp Suite passive detection1063. **Probe** — Send payload variations matching the vulnerability class1074. **Verify** — Run `111-fp-check` to confirm with second tool1085. **Document** — Fill report template (project-pentest / cnvd-common / edusrc / butian)1096. **Submit** — Manual submission (never auto-submit)110## Tools & Systems111112- **Burp Suite Pro / Community** — Intercepting proxy, scanner, and Repeater for manual testing113- **OWASP ZAP** — Open-source alternative to Burp with active scanner114- **sqlmap** — Automated SQL injection detection (for hunt-sqli)115- **Nuclei** — Template-based vulnerability scanner116- **ffuf** — Fast web fuzzer for endpoint discovery117- **curl / wget** — Manual HTTP request crafting118- **httpx** — HTTP probing and fingerprinting119120Run all tools with `-rate-limit 20` to avoid OPSEC issues. For deeper investigation, prefer manual testing with Burp over automated scanners (lower false-positive rate).121122123## Advanced Techniques124125### Chained Vulnerability Exploitation126Combine multiple low-severity findings (open redirect + cookie theft + session hijacking) to demonstrate high-impact chains in reporting.127128### WAF Evasion Patterns129Use case variations, encoding (URL, double-URL, Unicode), chunked transfer, and parameter pollution to bypass WAF/IDS during testing.