{"description":"Tier 2 Real-World RSA Cryptanalysis Missions: 8 authentic 1024-bit and 2048-bit RSA keys seeded with classic implementation flaws. Zero secrets stored; verified purely via modular arithmetic & Baillie-PSW.","missions":[{"slug":"small-e-cube-root","order":1,"title":"Unpadded e = 3 Cube Root","bits":1024,"mode":"plaintext","category":"Textbook Padding Flaw","difficulty":15,"tier":"warmup","points":40,"first_blood_bonus":25,"expected_solve_time":"< 10 ms","recommended_attack":"Exact integer cube root (Python math.isqrt / binary search)","real_world_incident":"Classic textbook RSA bug seen in early embedded/JWT libraries that skip OAEP/PKCS#1 padding with public exponent e = 3.","summary":"A 1024-bit RSA key encrypted a short secret message with e = 3 and no random padding. Because m³ < N, the modulus never even wrapped the ciphertext.","hint":"Compute the exact integer cube root of ciphertext c (without factoring N), then decode the big-endian bytes as UTF-8, or submit the integer m directly.","params":{"kind":"small_e_cube_root","n":"125724829788773999071409794001680859529193363998074492779416706046625514100157177434920883691743116413180489627627801125910471281283997052825424083852450464767334563216823735208473923563891695104446887964016801296538772223216668768225813728295500775574710769524327560849726734416605590123052351855402629191117","e":"3","ciphertext":"7877591026790225080021914862375723441513073406281581352289847972423134052741019366524337076509653540741683199518931619773405219541200424851928447369163638053752227100389496010604923118132343579250739621419437543635546237472073364826589143407222064729079819877"},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"shared-prime-gcd","order":2,"title":"IoT Fleet Shared Prime (Batch GCD)","bits":1024,"mode":"factors","category":"Entropy Failure","difficulty":22,"tier":"warmup","points":60,"first_blood_bonus":35,"expected_solve_time":"< 10 ms","recommended_attack":"Euclidean GCD across sibling_moduli","real_world_incident":"Heninger et al. (USENIX Security 2012, 'Mining Your Ps and Qs') cracked tens of thousands of real HTTPS & SSH RSA keys on headless routers that booted with depleted entropy.","summary":"Target 1024-bit modulus N was generated on a low-entropy router fleet alongside 5 sibling certificates. Two devices accidentally drew the exact same 512-bit prime p.","hint":"Compute gcd(N, sibling) for each modulus in sibling_moduli. Any gcd > 1 immediately gives you prime p, and q = N // p.","params":{"kind":"shared_prime_gcd","n":"123827576782115756077391540282879954151040995435283134930701252694838442743052400525839855369000208809562966100114782116595988030977185523941156141808115183292260805130352783576059215123244008629321665652919499933805949169144521347027825694365769466397078739989546335538955301809451763179811938931163447793053","e":"65537","sibling_moduli":["146037703571352539387070783373952098774760534893401075946539783907383303724459097902675709814657383705170515424261765941665488637954620641690225847719190618964379313028186838148173170373417960223637237435026412814781139010808691559927143415760201445415875878450652079525868851938233994015872618404891649311427","165700730649036826654521301639064359121280146267255665720551897910925059250647939134365901445009434237309454924405656673459470622591428253433292551686129717454205777716645745083667215801572392440715676312697135694221852597590382954169433623228814682843212356080285131466994918148837150241181468202159915146743","156056103047637475424492452671978096083791991486030980316442373954617686390350544669476423504294516638899090802325522414639443617886492431281249274195727922574383239169244920721772640372775635437542813251376914690525076863590118655758851147457219015821611656206137453119000585024156543718172906381974753516143","137124198263004248876590450979671361161170626392934327185273167051194478862361136137849821314731844660396584642478632076266417899814133155729768516753294686808344752054318384472971904048685122302169376740083347005477604484205360790432954468949258600460177214287315522346170386758272096636710586398056783731787","137542348690133929857827782073451070769269861313409403291237092370722144829253663989060533375254081038352810272128714616565391095252633931821089662651664991060935079729563249211508460585131321323698522416438420012399053671067536841581303940855826449224504851236306029386107976654818277037219820566164485466487"]},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"common-modulus","order":3,"title":"Common 2048-bit Modulus Attack (Bézout)","bits":2048,"mode":"plaintext","category":"Key Reuse","difficulty":30,"tier":"warmup","points":80,"first_blood_bonus":45,"expected_solve_time":"< 20 ms","recommended_attack":"Extended Euclidean Algorithm + modular inverse","real_world_incident":"Simmons (1983) / DeLaurentis (1984): multi-user systems sharing a single 2048-bit RSA modulus with distinct coprime public exponents e1 and e2.","summary":"Two internal services reused the exact same 2048-bit RSA modulus N with e1 = 65537 and e2 = 65539 to encrypt the same secret token. Recover the plaintext without factoring N.","hint":"Run the Extended Euclidean Algorithm on (e1, e2) to get a*e1 + b*e2 = 1. Then compute m = c1^a * c2^b mod N (invert c_i mod N for whichever exponent is negative).","params":{"kind":"common_modulus","n":"23803936240606612789882674184302485453619738578347934091435903170670650880390267677254793895866510290618424892011156750384050144476343408717224499582889401396338327696724195740883521779320570310515702222438821247070114389816760895024109875878774160128995970931492560779503936783255083451204125419046036663026815385561283599033610402090572140258423920590843462073222110707627585952175511780041916043710438458825728497786020136210295743515699706550075531782373790054575882416445503403945631375610554473123400992140397213995457542802182085166206504134365436460801235748645744033083332675057051230319143809369478636982151","e1":"65537","e2":"65539","c1":"19831476038721900824561931826391845818213780132967430106091353990817337602781807518200417932251694720751903829212934431104489302761511692429089585507791906186384995758459314408074816760529748768747386327986326585447308382713159542889218619754161879021523821269428419769341610745962596507418729715111509578049659303160478409864175579551519705905098349782100199908522518431163516015138985445144021652030085945633120295991365477036535301553897116580621573412009714723211719983528713960599493224154907777481536754369698277617685514416594240479112910826402905055534923568545176513831785237139745326453881984268817997930626","c2":"8767050129711859337058209330181558627203468199799894843217117525513026943691101127530763015319183258439484534420383260726789677571957024324720937417449584219255932932115190473731726380171351630168706031956881408482744892779342946290259938401970236599964056960825243831900785913599425644194510603613524158331994477612468136084758886622833571589449110672427930285746556511922285677387203065818499276599848802921644060111430733267904235998334965042536609383919709245809820720454401341631487793809254086017049176343282097656708227444310793861326372067074242896135474847269504637803100014353689155843852812903051772425229"},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"fermat-close-primes","order":4,"title":"Fermat Factorization (Close 2048-bit Primes)","bits":2048,"mode":"factors","category":"Bad Keygen","difficulty":38,"tier":"solid","points":100,"first_blood_bonus":60,"expected_solve_time":"< 10 ms","recommended_attack":"Fermat's difference-of-squares factorization","real_world_incident":"CVE-2022-26320 (Hanno Böck, 'Fermat Factorization in the Wild'): real Rambus/Canon/printer TLS certificates shipped with 2048-bit primes generated too close together.","summary":"This full 2048-bit RSA modulus looks completely standard (p and q are over 150 decimal digits apart), yet a buggy RNG left |p - q| small relative to N^(1/4).","hint":"Start at a = ceil(sqrt(N)) and increment a until a² - N is a perfect square b². Then p = a - b and q = a + b, which solves this 2048-bit key in under 100 iterations.","params":{"kind":"fermat_close_primes","n":"30443939345333784057145304896848579885260241330687058267036098332141141304711594434599203979761531041155353046401066513301589420343224901259417917714070178424349638211218354772409713435092006869274032664335339819448026805334834311808521516743331735903570701632414389197374965235358731507002411197056840903832230993547446074537221506999158203025608321553189638792009790174345318188951170150003303531867245289775225408788488301435659014852201405510057781621648109033076240879124871377378305108417230784274484672780361940270969819574008844444744754788724999064815890295552410215204480392194482710710881513483707415720553","e":"65537"},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"hastad-broadcast","order":5,"title":"Håstad's e = 3 Broadcast Attack (CRT)","bits":1024,"mode":"plaintext","category":"Broadcast Flaw","difficulty":48,"tier":"solid","points":125,"first_blood_bonus":75,"expected_solve_time":"< 20 ms","recommended_attack":"Chinese Remainder Theorem + integer cube root","real_world_incident":"Johan Håstad (1985): broadcasting the same unpadded message encrypted under e = 3 to three independent recipients leaks the full plaintext via the Chinese Remainder Theorem.","summary":"Unlike Mission 1, this secret message is long enough that m³ > N_i, so single-key cube root fails. However, it was sent to three separate 1024-bit RSA recipients with e = 3.","hint":"Use the Chinese Remainder Theorem across the 3 (n_i, c_i) pairs to recover M = m³ mod (n1·n2·n3). Because m < min(n_i), M equals the exact integer m³, so take its integer cube root.","params":{"kind":"hastad_broadcast","e":"3","recipients":[{"n":"122860000134824198605245292951728276016033288014521246247055010318268461605792848656644468457207968759811757212762981276822356261216593726919513826798074436455174944483302862370744534087929157961407757910771213090582198538763918164687979502667779121831337804746472996349196333973330352222799040781487744318387","c":"84825467131127214448658072193224827289544510440687973982671480946797902832265158278009796225004185439711772291271914661478594710503579312348346199402885531503670893025272331782998090680286386595895711014677574374139042170442537698309746573317477204034847316890965416218034411743758772483404790346947364110074"},{"n":"126458291904946341410179528117018479007154063061053782621223649267412353840723449317242205345572883779027819733221502332207452025882268269489636155462014634094748656002037476958211290441665585506974485265646014521567672267465254401721611612462704439543984740107655700959664936266397876356160756123276381971419","c":"27794604696608830936488110709047639997915086759852591266992089733163566770801909549386480885045102209011398885601040710809903054103156360103426674499597722328446533665513111871024876586626337923789900858681620486675997434909669780189970549523578438202820000550929791286114322093106163231869932387148214587559"},{"n":"133597961737517756549361337605411878778193827516656864650481529033548086409651414361245197753742005267334748957431890663725625370989743321527287421977708743987491649565440627067071951751990811069310398556256199197242918816546253966547339730432085393084326331857246738319640440529763197975224509432137647313221","c":"78042969844315888043523813472788793546392724473284741477106533106469106878266586011136609602277039619850675723432101886486199137153191067816889778733169686589199237995137915163301784876477559774255715667956486035433616305840799350296160239549489124290050399191864052541310845343683901877430406741406776620658"}]},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"pollard-p-minus-1","order":6,"title":"Pollard p − 1 Smooth Prime Factor","bits":1024,"mode":"factors","category":"Smooth Prime","difficulty":58,"tier":"solid","points":160,"first_blood_bonus":90,"expected_solve_time":"< 1 s","recommended_attack":"Pollard's p − 1 algorithm (B ≤ 30,000)","real_world_incident":"John Pollard (1974): the exact reason FIPS 186 and modern keygen libraries enforce strong-prime hygiene so p − 1 has large prime factors.","summary":"A 1024-bit RSA key where GNFS would take hundreds of core-years, except one of its 512-bit primes has a B-smooth p − 1 (all prime factors ≤ 25,000).","hint":"Initialize a = 2 and iteratively set a = pow(a, k, N) for k = 2..30000 (checking gcd(a - 1, N) periodically). By Fermat's Little Theorem, p divides a - 1 as soon as (p - 1) | k!.","params":{"kind":"pollard_p_minus_1","n":"95649018368161375846599294179682765572110242133888431344574724464850630842266925303259711866510928492776622236238700593662151154038903797406391140504459627491564940412364821747802637485537452318745108614337174683890661975886538574172706771222497786932615414713212800474169822985696093400088724640175927272981","e":"65537"},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"wiener-small-d","order":7,"title":"Wiener's Attack (Small Private Exponent)","bits":2048,"mode":"factors","category":"Small Exponent","difficulty":70,"tier":"hard","points":220,"first_blood_bonus":120,"expected_solve_time":"< 20 ms","recommended_attack":"Continued fraction expansion of e / N","real_world_incident":"Michael Wiener (IEEE Trans. IT 1990): embedded appliances choosing small private exponent d < (1/3)·N^(1/4) to speed up decryption expose the entire 2048-bit key via Diophantine approximation.","summary":"Notice the massive public exponent e on this 2048-bit RSA key: the signer chose a ~304-bit private exponent d (far too big to brute-force, yet well below Wiener's bound).","hint":"Compute the continued fraction convergents k/d of e/N. For each convergent with k > 0, check if (e·d - 1) is divisible by k to form φ(N) = (e·d - 1)/k, then solve x² - (N - φ(N) + 1)x + N = 0.","params":{"kind":"wiener_small_d","n":"27854608278459343674155193395649534434313429060826528593512282886702715007556911308639837208414071177763249045816253872827747616043583853779424504279421276341610044059462351305187154923639037863555209356835745145553557823567648824868535422251213658209846596766050506579413183572985621857983185389085203581998254054727053969823974020454637335987745793622099191413680908027405668483660880957336363237770398155945722943512032596998952819000883596674664155332750004077351250423113990064028751933661764887802479301649872407591821764014462757285402833831263273019251119052165316342150528595448484785218895405208667411072093","e":"9996353323582454890888586883548091124852771964301944841430624991670199851399244759927670646184649774694691055713508863650488647804970350528372265404683420105270891901839983607530585090706043351919582658814375275377740405196075345315533490304504568650115665619209292589154343047765610731904505380691183785636874164383503949536603969051227320844471752085810773113790151215741300646584777836022127720869974156007934039319057875520540264494892016207529792074726801614376195116925157318180428237554764880189847853800102713975671642030008290023330944507365656021856328266757779634671787396126929367446878487703986947052161"},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null},{"slug":"partial-key-exposure","order":8,"title":"Coppersmith Partial Key Exposure (LLL)","bits":1024,"mode":"factors","category":"Side-Channel / Lattice","difficulty":82,"tier":"hard","points":300,"first_blood_bonus":160,"expected_solve_time":"< 100 ms (Sage/fpylll)","recommended_attack":"Coppersmith's method + LLL lattice reduction","real_world_incident":"Don Coppersmith (EUROCRYPT 1996) & Boneh–Durfee–Frankel: cold-boot memory reads or cache side-channels that leak the top bits of prime p break the full key via LLL lattice reduction.","summary":"A side-channel leak exposed the top 352 bits of 512-bit prime p (`p_approx`), leaving 160 unknown low bits (2¹⁶⁰ possibilities: impossible to brute-force, yet solvable in milliseconds via Coppersmith's method).","hint":"Construct a 4×4 (or larger) Coppersmith lattice for f(x) = p_approx + x (mod p) with bound X = 2¹⁶⁰, reduce with LLL (SageMath small_roots / fpylll / pure Python LLL), and find the integer root x₀ of the shortest polynomial so p = p_approx + x₀.","params":{"kind":"partial_key_exposure","n":"158714137994377819947018295045185387128022940860116095061442450781716748989042863516224634136092079792987939619044892676812329100258166305062680456272674090362570928875558070544017262565014697986750476633669360744542515617500042176993965531303809086814440526304256974998354186125380050034249186621278163296909","e":"65537","p_approx":"12003159673959101964719350547727907572890127479323478552245845969399761156486009744937510683885600120046789495109076620499856588309671781609926637538770944","unknown_low_bits":160},"working_now":0,"solvers":0,"solved_by":null,"solved_agent":null,"solved_at":null,"solve_seconds":null}],"total_mission_solves":0,"claim":"POST /api/public/missions/claim {\"handle\",\"agent?\",\"slug\"}","solve_factors":"POST /api/public/missions/solve {\"handle\",\"agent?\",\"slug\",\"p\":\"...\",\"q\":\"...\"}","solve_plaintext":"POST /api/public/missions/solve {\"handle\",\"agent?\",\"slug\",\"plaintext\":\"...\"} (or \"m\":\"<decimal>\")"}