Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
paranoid_crypto — Paranoid 的库包含对加密工件上已知弱点的检查实现。 | Kitploit
工具/GitHubGitHub/google/paranoid_crypto
防御工具静态分析漏洞分析代码分析哈希分析密码学论文与研究
GitHubgoogle/paranoid_crypto

paranoid_crypto

Paranoid 的库包含对加密工件上已知弱点的检查实现。

查看仓库
80349428天前Kitploit 审核通过
分享

Project Paranoid

概述

Paranoid 项目用于检查密码学产物(如公钥、数字签名和一般伪随机数)中已知的弱点。该库包含文献中已有工作的实现与优化。已有工作表明,这些产物的生成在某些情况下存在缺陷。以下是该库所基于的部分出版物示例。

  • Arjen K. Lenstra, James P. Hughes, Maxime Augier, Joppe W. Bos, Thorsten Kleinjung, and Christophe Wachter. (2012). Ron was wrong, Whit is right;

  • Nadia Heninger, Zakir Durumeric, Eric Wustrow, and J. Alex Halderman. (2012). Mining Your Ps and Qs: Detection of Widespread Weak Keys in Network Devices;

  • Daniel J. Bernstein, Yun-An Chang, Chen-Mou Cheng, Li-Ping Chou, Nadia Heninger, Tanja Lange, and Nicko van Someren. (2013). Factoring RSA keys from certified smart cards: Coppersmith in the wild;

  • Joachim Breitner and Nadia Heninger. (2019). Biased Nonce Sense: Lattice Attacks against Weak ECDSA Signatures in Cryptocurrencies;

目标

目标是提升 Google 内外密码学用例的可信度。

在处理非对称加密时,密码学产物通常:

  1. 由我们自己的工具生成(例如,在 Google 我们使用 boringssl 或 tink);或者,
  2. 由我们可访问的第三方工具生成(因此这些工具可以使用 wycheproof 检查漏洞);或者,
  3. 由我们无法访问的第三方工具和/或硬件或软件黑盒生成。

借助 Paranoid,任何密码学产物都可以被测试,但其主要动机是检测弱第三方硬件或软件黑盒的使用。因此,即使我们无法检查源代码(上述情况 3),也可以使用 Paranoid。

该项目旨在检测已知漏洞以及未知漏洞。例如,它尝试识别由编程错误或使用弱专有随机数生成器导致的漏洞。检测新漏洞当然比检测已知漏洞困难得多。此类检测可能需要大量产物集合,或者只能以较低概率发现弱产物。

因此,我们非常希望收到反馈,并了解生成弱密码学产物的密码学库(参见征集贡献)。该项目持续进行中。在了解弱实现后,计划分析并添加针对它们的检测。

入门

当前已实现检查的文档位于 docs。文档将随时间补充更多内容。

要了解如何使用这些检查,可以查看 examples 文件夹或单元测试(*test.py 文件)。示例演示了测试不同的密码学产物。

安装

克隆仓库:

$ git clone https://github.com/google/paranoid_crypto.git && cd paranoid_crypto

NOTE: The commands below have been tested on Debian stable version (bookworm). Make sure you will be using python3.11 or newer.

Install dependencies:

$ sudo apt update && sudo apt install python3 python3-full python3-pip \
  python3-pybind11 python3-fpylll python3-gmpy2 libgmp-dev protobuf-compiler

Create and activate a virtual environment:

$ python3 -m venv --system-site-packages ~/paranoid-venv

$ source ~/paranoid-venv/bin/activate

NOTE: If you know what you are doing, you can instead skip to the next step and use --break-system-packages switch for pip.

Install paranoid_crypto python package:

$ python3 -m pip install .

要检查安装是否成功,可以运行单元测试。 例如:

$ cd paranoid_crypto && python3 -m unittest discover -b -p "*test.py"
.................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 305 tests in 314.660s

OK

Docker

或者,如果你想在容器中运行它,可以使用我们提供的 Dockerfile,如下所示。

注意:请确保已安装 docker。

克隆仓库后,构建 docker 镜像:

$ docker build -t paranoid-img .

Create and start the container:

$ docker run --name paranoid-container -it paranoid-img
paranoid-user@6191368b26b8:~$

To check whether the installation was successful, you can run the unit tests. For example:

paranoid-user@6191368b26b8:~$ cd paranoid_crypto && python3 -m unittest discover -b -p "*test.py"
.................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 305 tests in 307.555s

OK

Preliminary results

Similar to other published works, we have been analyzing the crypto artifacts from Certificate Transparency (CT), which logs issued website certificates since 2013 with the goal of making them transparent and verifiable. Its database contains more than 7 billion certificates as of September 2022. For the Paranoid checks of EC public keys and ECDSA signatures, so far, we have not found any weak artifacts in CT. For the RSA public key checks with severities high or critical, we have the following results:

TestNamePotentially Related CVEsSeverityNumber of Weak Artifacts
CheckOpensslDenylistCVE-2008-0166SEVERITY_CRITICAL3989
CheckROCACVE-2017-15361SEVERITY_HIGH2875
CheckGCD-SEVERITY_CRITICAL1860
CheckFermatCVE-2022-26320SEVERITY_CRITICAL36
CheckContinuedFractions-SEVERITY_CRITICAL16
CheckBitPatterns-SEVERITY_CRITICAL6
CheckPermutedBitPatterns-SEVERITY_CRITICAL6
CheckKeypairDenylistCVE-2021-41117SEVERITY_CRITICAL4
CheckPollardpm1-SEVERITY_CRITICAL1

Some of these certificates were already expired or revoked. For the ones that were still active (most of the CheckGCD ones), we immediately reported them to the Certificate Authorities to be revoked.

ABOUT

This library is developed and maintained by members of Google Security Team, but this is not an officially supported Google product. If you want to contribute, please read CONTRIBUTING and send us pull requests. You can also report bugs or file feature requests.

If you use Paranoid in your research, you can cite it using the following BibTeX:

@software{Barbosa_Bleichenbacher_Paranoid_Crypto_2022,
  author = {Barbosa, Pedro and Bleichenbacher, Daniel},
  license = {Apache-2.0},
  month = {8},
  title = {{Paranoid Crypto}},
  url = {https://github.com/google/paranoid_crypto},
  year = {2022}
}
下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    708
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    500
  • 3

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    398
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    341
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    259
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    257

探索所有工具

浏览我们的工具集合

查看所有工具 →