한 줄 답Short answer
KeyGuard는 RSA 공개키 4대 구조 결함을 브라우저 안에서 찾아내는 무료 점검 도구입니다. 내장 벤치마크 키 145개에서 약한 키 65개를 모두 찾았고, 정상 키 80개에서 오탐은 0건이었습니다(2026-11-25).KeyGuard is a free tool that finds four families of structural defects in RSA public keys, inside your browser. On its built-in benchmark of 145 keys it found 65 of 65 weak keys with 0 false alarms on 80 healthy keys (2026-11-25).
65 / 6565 / 65약한 키 검출, 오탐 0건weak keys found, 0 false alarms
1.4 ms1.4 ms2048비트 키(가까운 소수) 복원to recover a 2048-bit key with close primes
12 / 1212 / 12ROCA 구조 키 검출, 일반 키 40개 오탐 0건ROCA-structured keys flagged, 0 of 40 ordinary keys
00페이지를 불러온 뒤 네트워크 요청network requests after the page loads
문제는 RSA가 아니라 키가 태어나는 순간입니다The problem is not RSA. It is how some keys are born
RSA 공개키는 두 비밀 소수의 곱 N = p × q입니다. 공유기와 카메라 같은 기기는 처음 켜진 직후, 무작위성이 모자란 상태에서 키를 만드는 일이 많습니다. 그래서 서로 다른 두 기기가 같은 소수를 고를 수 있습니다. 키가 길어도 소용이 없습니다.An RSA public key is the product of two secret primes, N = p × q. Routers and cameras often create a key right after first boot, when there is little randomness to draw from. Two different devices can land on the same prime, and key length no longer helps.
| 연구Study | 확인된 사실Finding |
|---|
| Mining Your Ps and Qs, USENIX Security 2012 | 공개키가 인수를 공유해 TLS 호스트 약 0.50%의 개인키를 얻음Private keys obtained for about 0.50% of TLS hosts because their public keys shared factors |
| Keyfactor, 2019 | 서로 다른 키 249,553개가 풀림. 인터넷에서 모은 RSA 인증서 약 172개 중 1개249,553 distinct keys broken, about 1 in 172 of the RSA certificates collected from the internet |
| ROCA, CVE-2017-15361 | 결함 있는 칩 라이브러리의 키에 수학적 지문이 남음Keys from a flawed chip library carry a mathematical fingerprint |
무엇을 점검합니까What KeyGuard checks
| 점검Check | 무엇이 문제인가What goes wrong | 찾는 방법How it is found |
|---|
| 소수 공유Shared primes | 두 기기가 같은 소수를 써서 두 개인키가 모두 풀림Two devices use the same prime, so both private keys are recoverable | 함께 넣은 키끼리 최대공약수 계산Pairwise GCD over the keys you paste together |
| 가까운 소수Close primes | p와 q가 거의 같아 N이 바로 분해됨p and q are nearly equal, so N factors almost at once | 단계 수를 정한 페르마 분해Fermat factorization with bounded steps |
| ROCA 지문ROCA fingerprint | 결함 라이브러리 키가 정해진 무늬를 따름Keys from the flawed library follow a fixed pattern | 홀수 소수 38개에 대한 부분군 검사Subgroup test over 38 odd primes |
| 길이와 지수Length and exponent | 짧은 키, 비정상 공개 지수Short keys or an abnormal public exponent | 직접 확인Direct inspection |
두 기기, 소수 하나, 열린 키 두 개Two devices, one prime, two open keys
「소수 공유」 샘플을 누르면 2048비트 공개키 두 개가 들어갑니다. 최대공약수 한 번으로 두 키가 함께 쓴 1024비트 소수가 나옵니다. 슈퍼컴퓨터도 양자컴퓨터도 필요하지 않습니다.Press the shared prime sample. Two 2048-bit public keys go in, and one GCD reveals the 1024-bit prime they have in common. No supercomputer and no quantum computer is needed.
g = gcd(N1, N2) # both values are public
if g not in (1, N1, N2):
p, q1, q2 = g, N1 // g, N2 // g # both keys are now factored

실제 실행 화면. 개인키 값은 표시하지 않습니다.Live screen. The private key value is never shown.
왜 점검을 합쳐야 합니까Why combine the checks
| 검출기Detector | 찾은 약한 키Weak keys found | 정상 키 80개 오탐False alarms on 80 healthy keys | 145개 처리 시간Time for 145 keys |
|---|
| KeyGuard | 65 / 65 (100%) | 0 | 73 ms |
| 길이·지수 점검Size and exponent | 25 / 65 (38.5%) | 0 | < 1 ms |
| 최대공약수만GCD only | 20 / 65 (30.8%) | 0 | 9 ms |
| 페르마만Fermat only | 20 / 65 (30.8%) | 0 | 95 ms |
같은 계열의 배치 GCD 엔진은 인증서 투명성 로그의 실제 RSA 공개키 220,707개와 심어 둔 약한 키 6개, 모두 220,713개를 122.5초에 처리했습니다. 심은 키 6개를 모두 찾았고 실제 키에서 오탐은 0건이었습니다.A batch-GCD engine from the same family processed 220,713 keys in 122.5 seconds: 220,707 real RSA public keys from Certificate Transparency logs plus 6 planted weak keys. It found 6 of 6 planted keys with 0 false alarms on the real ones.
내 기기를 3단계로 점검하기Check your own devices in three steps
1. 공개키를 꺼냅니다1. Get the public key점검 권한이 있는 기기의 인증서, 공개키 파일, SSH 공개키를 준비합니다.Take the certificate, public key file or SSH public key of a device you are authorized to test.
2. 함께 붙여넣습니다2. Paste them together여러 기기의 키를 한 번에 넣어야 소수 공유를 찾을 수 있습니다.Put several devices in at once so that a shared prime can be found.
3. 결과를 봅니다3. Read the result키마다 안전, 주의, 위험과 이유를 보여 줍니다.Each key gets Safe, Caution or Danger with the reason.
openssl s_client -connect 192.0.2.10:443 </dev/null 2>/dev/null | openssl x509
cat ~/.ssh/id_rsa.pub
자주 묻는 질문FAQ
KeyGuard는 무엇입니까?What is KeyGuard?
KeyGuard는 비드래프트가 공개한 무료 RSA 공개키 점검 도구입니다. 같은 소수를 나눠 쓴 키, 두 소수가 너무 가까운 키, ROCA 지문이 있는 키, 길이나 지수가 위험한 키를 브라우저 안에서 찾습니다.KeyGuard is a free self-check for RSA public keys from VIDRAFT. It finds keys that share a prime, keys whose primes are too close, keys with the ROCA fingerprint, and keys with a dangerous length or exponent, all inside your browser.
2048비트 RSA 키도 깨질 수 있습니까?Can a 2048-bit RSA key be broken?
소수를 제대로 고른 2048비트 키는 지금의 소인수분해 방법으로 닿지 않습니다. 그러나 두 기기가 소수 하나를 같이 쓰면 최대공약수 한 번으로 두 키가 모두 풀리고, 두 소수가 너무 가까우면 KeyGuard 데모에서 1.4밀리초 만에 풀립니다.A 2048-bit key with well chosen primes is out of reach for today's factoring methods. If two devices share one prime, a single greatest common divisor opens both keys, and if the two primes are too close, the KeyGuard sample falls in 1.4 ms.
공개키를 입력하면 서버로 전송됩니까?Is my public key sent to a server?
전송되지 않습니다. 모든 계산은 브라우저의 자바스크립트로 처리합니다. 점검하는 동안 네트워크를 기록한 결과, 페이지를 불러온 뒤의 요청은 0건이었습니다. 개인키는 받지 않습니다.No. Every check runs in JavaScript in your browser. We recorded the network during the checks and saw 0 requests after the page loaded. Private keys are not accepted.
어떤 형식을 붙여넣을 수 있습니까?Which formats can I paste?
BEGIN PUBLIC KEY, BEGIN RSA PUBLIC KEY, BEGIN CERTIFICATE, ssh-rsa 한 줄, 16진수 모듈러스, 10진수 N, N:e 형식을 받습니다. 2048, 3072, 4096비트 18가지 조합을 모두 바르게 읽었습니다.BEGIN PUBLIC KEY, BEGIN RSA PUBLIC KEY, BEGIN CERTIFICATE, an ssh-rsa line, a hex modulus, a decimal N, or N:e. All 18 tested combinations across 2048, 3072 and 4096 bits were read correctly.
여러 기기의 키를 함께 넣어야 하는 이유는 무엇입니까?Why should I paste keys from several devices together?
같은 소수를 쓰는 결함은 키를 서로 비교해야 드러납니다. 한 개씩 보면 모두 정상으로 보입니다. 공유기, 카메라, 프린터, VPN 장비의 공개키를 한 번에 넣으십시오.A shared prime shows up only when keys are compared with each other. One at a time, each key looks healthy. Paste the public keys of your routers, cameras, printers and VPN gateways together.
ROCA 취약점(CVE-2017-15361)은 어떻게 찾습니까?How is ROCA (CVE-2017-15361) detected?
결함이 있는 칩 라이브러리가 만든 키는 작은 소수로 나눈 나머지가 정해진 무늬를 가집니다. KeyGuard는 홀수 소수 38개로 이 무늬를 확인합니다. 자체 시험에서 ROCA 구조 키 12개 중 12개를 찾았고, 일반 키 40개에서 오탐은 0건이었습니다.Keys from the flawed chip library follow a fixed pattern modulo small primes. KeyGuard tests this pattern over 38 odd primes. In our own test it flagged 12 of 12 ROCA-structured keys and 0 of 40 ordinary keys.
위험 판정이 나오면 무엇을 해야 합니까?What should I do if a key is marked Danger?
해당 키의 사용을 멈추고, 기기 펌웨어를 갱신한 뒤, 새 키를 만드십시오. 다른 회사 제품에서 찾은 약한 키는 제조사나 국가 침해사고대응팀에 비공개로 알리십시오.Retire the key, update the device firmware and generate a new key. If the weak key belongs to someone else's product, report it privately to the vendor or your national CERT.
비용과 라이선스는 어떻게 됩니까?What does it cost and what is the license?
무료이고 로그인이 없습니다. MIT 라이선스로 공개했으며 한국어, 영어, 중국어를 지원합니다.It is free with no sign-in, released under MIT, and available in English, Korean and Chinese.
소유했거나 점검 권한이 있는 기기의 키만 점검하십시오.Use it only on keys of devices you own or are authorized to test.