跳到正文
Skillpedia
安全35k · #8212

performing-cryptographic-audit-of-application

它能做什么

这个工具会检查你的代码和配置文件,查找与加密相关的安全问题。它会寻找暴露的密码、薄弱或过时的加密方法,以及其他可能让你的数据面临风险的漏洞。

适用场景

  • ✓在检查一个新应用的安全性时。
  • ✓在一次大型代码更新之后。
  • ✓定期检查,确保一切安全。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-cryptographic-audit-of-application/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-cryptographic-audit-of-application/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“扫描我的 Python 代码,看看有没有不安全的密码或加密方法。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会分析你的代码和配置文件,搜索已知的加密弱点模式,比如直接写在代码里的密码,或者使用了已不再被认为安全的加密算法。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

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

  • 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%
常见问题

什么是“加密原语”?

这是加密技术的基本构件,比如哈希算法(用于校验完整性)和加密算法(用于打乱数据)。

“密钥管理”是什么意思?

指加密中使用的密钥如何被安全地生成、存储、使用和销毁。

什么是“弱算法”?

这是一种已经过时的加密方法,黑客可以相对轻松地破解,从而危及数据安全。

详情

作者的原始描述

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

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8212
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能