界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

performing-cryptographic-audit-of-application

performing-cryptographic-audit-of-application

【开发与工程】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, hardco

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: performing-cryptographic-audit-of-application description: 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, hardco domain: cybersecurity subdomain: cryptography tags: [cryptography, audit, security-review, compliance, vulnerability-assessment] version: "1.0" author: mahipal license: Apache-2.0

Performing Cryptographic Audit of Application

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.

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

CategoryExamplesRisk Level
Weak HashingMD5, SHA-1 for integrity/signaturesHigh
Insecure EncryptionDES, 3DES, RC4, BlowfishHigh
Bad Cipher ModeECB mode for any block cipherHigh
Insufficient Key SizeRSA < 2048, AES-128 for long-termMedium
Hardcoded SecretsKeys/passwords in source codeCritical
Weak KDFLow iteration PBKDF2, plain MD5High
Poor Entropytime-based seeds, predictable IVsHigh
Deprecated ProtocolsSSLv3, TLS 1.0, TLS 1.1High

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

  • Scanner detects all injected test weaknesses
  • MD5/SHA-1 usage for security purposes is flagged
  • ECB mode usage is flagged
  • Hardcoded keys/passwords are detected
  • Weak KDF parameters are identified
  • Report includes severity, location, and remediation
  • False positive rate is below 10%
我的收藏