Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
paranoid_crypto — Paranoid의 라이브러리에는 암호화 아티팩트에 대한 알려진 취약점 검사 구현이 포함되어 있습니다. | Kitploit
도구/GitHubGitHub/google/paranoid_crypto
Defensive ToolsStatic AnalysisVulnerability AnalysisCode AnalysisHash AnalysisCryptographyPapers & Research
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를 사용하면 모든 암호화 아티팩트를 테스트할 수 있지만, 주된 동기는 취약한 타사 하드웨어 또는 소프트웨어 블랙박스의 사용을 탐지하는 것입니다. 따라서 Paranoid는 소스 코드를 검사할 수 없는 경우(위에 나열된 상황 3)에도 사용할 수 있습니다.

이 프로젝트는 알려진 취약점뿐만 아니라 알려지지 않은 취약점도 탐지하는 것을 목표로 합니다. 예를 들어, 프로그래밍 오류나 취약한 독점 난수 생성기의 사용으로 인한 취약점을 식별하려고 시도합니다. 새로운 취약점을 탐지하는 것은 물론 알려진 취약점을 탐지하는 것보다 훨씬 어렵습니다. 이러한 탐지에는 대규모 아티팩트 집합이 필요하거나 낮은 확률로만 취약한 것을 찾을 수 있습니다.

따라서 우리는 취약한 암호화 아티팩트를 생성한 암호화 라이브러리에 대한 피드백과 정보를 받는 것에 매우 관심이 있습니다 (기여 요청 참조). 이 프로젝트는 지속적으로 진행 중입니다. 취약한 구현에 대해 알게 된 후에는 이를 분석하고 대상으로 하는 탐지를 추가할 계획입니다.

시작하기

현재 구현된 검사에 대한 문서는 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}
}
도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

아직 인기 데이터가 없습니다.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →