IronCrypto 0.5.0 and the IronSecurity stack: addressing recent cryptography advisories across the agentic-first software stack
CRYPTOGRAPHY

IronCrypto 0.5.0 and the IronSecurity stack: addressing recent cryptography advisories across the agentic-first software stack

Adam EricksonAdam EricksonDecember 3, 202616 min read
Listen to this article
0:00
--:--

Between November 30 and December 2, 2026, the National Security Agency (NSA), the Cybersecurity and Infrastructure Security Agency (CISA) and their federal partners published five documents that bear directly on cryptographic software, and a set of research results on lattice cryptography appeared alongside them. Today we released IronCrypto 0.5.0, all twenty-three crates, on crates.io. This post sets out what the advisories ask, what IronCrypto 0.5.0 and the rest of the IronSecurity stack do about each request, and why we built the stack so that the agents writing today's code can follow those requests correctly.

IronCrypto is not FIPS 140-3 validated and holds no CMVP certificate. Nothing below claims that any agency endorses it, or that any part of the stack complies with any advisory. Where we write that something "maps to" an advisory's action, we mean we have read the action and can point to the code that bears on it, and to what remains the operator's.


The documents

Five government documents, 2026-11-30 to 2026-12-02, and a set of research results. Each is linked; follow them for the detail, and SECURITY.md quotes and maps every recommendation in full.

  1. NSA press release, 2026-12-02. Prioritize CNSA 2.0, inventory quantum-vulnerable dependencies, "Prioritize quantum-resistant firmware signatures", and "Ensure systems support cryptographic agility".
  2. NSA Cybersecurity Advisory PP-26-4956, December 2026. Six actions, from inventory to live detection, with the CNSA 2.0 algorithm tables in an appendix.
  3. ONCD, NSA and CISA joint statement, 2026-12-02, also published by CISA. Its assessment: "recent SI advances do not present an immediate and widespread threat to that cryptography", with a call to upgrade digital infrastructure expeditiously. It cites Executive Order 14412.
  4. CISA alert, 2026-11-30. Malicious use of agentic offensive frameworks: operational advice, nothing about cryptography.
  5. CISA, the U.S. Army and federal partners, 2026-12-02. The Defense Critical Infrastructure Community Coordination Guide: coordination between installations and their suppliers.

The research: Anthropic's four lattice papers and their Lean 4 formalization, whose README states that "The results are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA"; and the Cryptography Incident Review Group's initial assessment, which recommends continuing the transition, choosing "the highest security level each application can support", hybrids "that combine schemes based on different mathematical foundations", and agile systems.


What IronCrypto 0.5.0 adds

0.5.0 adds XMSS and XMSS^MT signature verification (RFC 8391, SP 800-208) in a new crate, ic-xmss; X448; two hybrid key-encapsulation mechanisms, X-Wing and MLKEM1024-P384, which pairs ML-KEM-1024 with ECDH on P-384; RSA-OAEP; finite-field Diffie-Hellman over the RFC 7919 groups; AES-CCM, AES-SIV, AES-OCB3 and XTS-AES; ECDSA and ECDH on secp256k1 and the Brainpool curves; and, in ic-rustls, TLS 1.3 hybrid key exchange over the RFC 10024 groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. The full list, and the one breaking change (ic_ontology::Policy gained an excluded field), are in the CHANGELOG. The README and SECURITY.md quote each advisory and map it, recommendation by recommendation.


The stack: an agentic-first replacement for every tool the advisories name

The NSA advisory's actions land on the tools organizations already run: TLS libraries, SSH, certificate authorities, mail and code signing, and file encryption. The IronSecurity stack provides its own agentic-first alternative to each. Every project in the stack, IronChat included, is designed the same way: pure Rust and agentic-first. Each is written entirely in Rust on IronCrypto, with no C libraries; the only foreign calls are to the operating system's own interfaces, such as terminal control, the Secure Enclave and the Android Keystore. IronCrypto, IronSocketLayer, IronPrivacyGuard, IronSecureShell and IronSecureMail each publish a machine-readable ontology of what they support, and their command-line tools answer in JSON. IronSocketLayer, IronPKI, IronSecureShell and IronSecureMail have a national-security profile built to the advisories: hybrid post-quantum key establishment with P-384 (never a lattice scheme alone), AES-256 and SHA-384/512, and nothing outside the profile offered or accepted.

Instead ofIronSecurity stackWhat it does for the advisoriesStatus
OpenSSL's libcryptoIronCryptoThe primitives, plus the CNSA 2.0 profile, hybrid-only post-quantum recommendations and the agility switch every other row relies on0.5.0, released
OpenSSL's TLSIronSocketLayer (TLS 1.3 and QUIC), and ic-rustls for rustlscnsa-2 is exactly SecP384r1MLKEM1024, AES-256-GCM and ECDSA P-384, interoperable with OpenSSL 3.6.0ic-rustls released; cnsa-2 on a branch
openssl x509, openssl caIronPKICA keys checked against the "RSA 3K or P-384" base size; P-384 only under its CNSA policy, with an optional ML-DSA-87 chainOn a branch
OpenSSHIronSecureShellcnsa2 uses mlkem1024nistp384-sha384 key exchange, ECDSA P-384 keys and AES-256Private, milestone 1
openssl cms, S/MIMEIronSecureMailcnsa2 signs with ML-DSA-87 and ECDSA P-384 together, and refuses either alonePrivate, milestone 1
GnuPGIronPrivacyGuardHybrid identities by default; an exclusive cnsa policy admits only ML-KEM-1024 + P-384Experimental, pre-1.0
SignalIronChat, on ic-ratchetSignal's published PQXDH and Triple Ratchet, rebuilt, moving to a CNSA 2.0 suiteIn development; ic-ratchet has external review before release
Vendor KMS and HSM SDKsIronKeysKey custody for the stack: PKCS#11, HSMs, the iOS Secure Enclave and the Android KeystoreMerged; on-device testing to come
A web stack and its serversSPINETerminates TLS through ic-rustls or IronSocketLayer; session and token handling sized for post-quantum signaturesJoining the stack: being moved onto IronCrypto, on a branch
A browserThe web browser in Interlinked, our agentic-first desktop command center, which integrates Rodeo, Frontier and IronTerminalFollows the hybrid groups the stack offers, and Chrome's programme for post-quantum trustIn development
A VPNTUNDRALong-lived tunnels rekeyed through a hybrid KEM, so the ML-DSA cost is paid oncePrivate; being moved onto IronCrypto, on a branch
Security operationsIronSecurityHolds these documents as a registry, each quotation checked by a test, and reports weak cryptography from the stack's own probesPrivate, on a branch

Every one of them calls IronCrypto for cryptography and carries none of its own, so a hybrid added, an algorithm refused or a profile tightened in 0.5.0 reaches all of them through one dependency bump.

IronChat, like the rest of the stack, is pure Rust, calling the operating system only through its own interfaces, and agentic-first by design. It is a one-to-one messenger for people and AI agents alike. An agent account has an identity, keys, contacts and conversations like a person's, is labelled as an agent wherever its messages appear, and drives the app through the same typed operations as the interface. Its protocol is built from Signal's public specifications rather than ported from Signal's code, and is deliberately not wire-compatible with Signal. Its identities bind separate signing and agreement keys, and every prekey is signed. Until ic-ratchet is merged, reviewed and released, IronChat's builds use a test session and must not carry real messages.

IronChat follows the advisories too. New identities and sessions will use a CNSA 2.0 suite: P-384 with ML-KEM-1024 for key agreement, ECDSA P-384 signatures and AES-256. Signal's X25519 suite remains as a post-quantum fallback, marked as such wherever a contact uses it, and an opt-in exclusive mode refuses it. Signal's specifications name only X25519 and X448, so the P-384 suite is a documented deviation from them. On iPhones, whose Secure Enclave holds only P-256 keys, the default keeps the message store's key bound to the Enclave and says that this one step is not CNSA; the exclusive mode gives up that binding for an AES-256 key. This work is in progress.

We say these products are built to follow the advisories, not that they comply with them. No agency certifies conformance to these documents, and some of the work is not finished. The ML-DSA-87 + ECDSA P-384 composite signature is built and tested against the IETF draft's vectors, but is on a branch, not in a release. IronSecureMail's cnsa2 profile refuses to encrypt until a hybrid ML-KEM-1024 + P-384 KEM for S/MIME exists. IronPrivacyGuard's category-5 identity combines its two key-agreement secrets with SHA3-256, as the hybrid KEM's specification does. The advisory's appendix allows SHA-3 only for internal hardware functions, so a SHA-384-based combiner is still to come. And live detection of weak cryptography in captured traffic is designed but not built. IronPrivacyGuard is not a drop-in GnuPG replacement: its native format is not OpenPGP, and it exchanges files with GnuPG through a separate OpenPGP boundary.


The lattice results: hybrids, the highest level, and an off switch

The joint statement and the research agree on the shape of the risk: no published result reaches the parameters ML-KEM and ML-DSA use, but the assumption beneath them deserves less blind trust than it had a month ago. IronCrypto records exactly that. Each affected hardness assumption carries the findings, with their bounds and sources, and the flag reaches_implemented_parameters: false.

The library then acts on CIRG's recommendations rather than leaving them to the reader:

  • Hybrid, never lattice alone. ic recommend --post-quantum answers key agreement and signing with hybrids: MLKEM1024-P384 or X-Wing, and ML-DSA composites paired with an elliptic curve. no-lattice-alone is one of the rules that ship with the library, and no TLS provider offers ML-KEM by itself.
  • The highest security level. Post-quantum answers are at category 5, and the smaller ML-KEM and ML-DSA sets carry a serious-severity constraint to prefer the highest level.
  • Agility you can use at run time. ic_fips::disable_assumption refuses every algorithm resting on a named assumption, hybrids included, and ic recommend --without carries the exclusion into selection. With both lattice assumptions disabled, signing falls back to SLH-DSA. We also state the limit plainly: every post-quantum KEM here is ML-KEM, so no post-quantum key agreement would remain.

The advisory's six actions, across the stack

The NSA advisory is addressed to the organizations that run systems, not to libraries. A library can make each action possible, cheaper, or checkable. Here is where each one lands in the IronSecurity stack, and what stays with the operator. Most of this work is new this week, so we mark what is released and what is still on a branch.

1. "Inventory where cryptography is currently used." The advisory asks teams to record "which algorithms each system uses for key establishment, signatures, and certificates". IronCrypto describes itself in machine-readable form: ic sbom (CycloneDX), ic ontology list --json, and ic ontology assumptions --json, which says what each algorithm rests on (released). IronSocketLayer's isl probe now grades each server it connects to against the advisory's algorithm tables, and isl inventory lists the library's own algorithms (on a branch). Inventorying a deployment is still the operator's work; we supply the inputs.

2. "Move TLS services to TLS 1.3 with approved crypto profiles." The advisory says: "If needing a hybrid key exchange, configure according to IETF RFC 10024 specifications." IronCrypto's ic-rustls ships a provider whose only group is SecP384r1MLKEM1024 (released). IronSocketLayer's national-security profile is now exactly SecP384r1MLKEM1024, TLS_AES_256_GCM_SHA384 and ECDSA P-384. We tested it against OpenSSL 3.6.0 in both directions, and confirmed the test fails when OpenSSL is configured for ML-KEM-1024 alone (on a branch).

3. "Stand up PQC Certificate Authorities and roots of trust." The advisory asks for "RSA 3K or P-384 as the base size for roots". IronPKI now checks every CA key at issuance against that base size. Its national-security policy issues only P-384 keys, and it can require a P-384 chain and an ML-DSA-87 chain for the same subject, as an interim hybrid until composite certificates are standardized (on a branch). IronCrypto's ic_pkix issues certificates under ML-DSA-87 or ECDSA P-384 (released). Running the CA is the operator's.

4. "Replace or reconfigure certificates, PKI, and code signing." IronPKI adds code-signing and S/MIME certificate purposes (on a branch). Under its cnsa2 profile, IronSecureMail, our new S/MIME replacement, signs every message with both ML-DSA-87 and ECDSA P-384. OpenSSL verifies those messages, and removing either signature makes verification fail. The gaps: IronCrypto verifies LMS and XMSS but does not create them, and the ML-DSA-87 + ECDSA P-384 composite signature, built and tested against the IETF draft's vectors, is not yet released.

5. "Update and upgrade software and firmware to enable PQC." The sentence in this action we took most literally: "configure the product to exclusively use the approved cryptography profile. Do not leave non-PQC defaults in place." Every national-security profile in the stack is exclusive, and each one has a test that enumerates every algorithm the product implements and fails if anything outside the profile can be offered, negotiated or verified. That covers IronSocketLayer's cnsa-2, IronPKI's CNSA policy, and the cnsa2 profiles of IronSecureShell (our new OpenSSH replacement) and IronSecureMail. We confirmed each of those tests fails when we add an outside algorithm. General-purpose profiles offer hybrids first and keep a classical fallback for interoperability with classical peers. National-security deployments choose the exclusive profile.

6. "Triage non-upgradable systems and add live detection for residual weak cryptography." IronSecurity, the stack's security-operations knowledge base, now holds all of these documents as a registry, including the advisory's six actions and its algorithm tables. Each quotation is checked by a test against the source text. Its new isec weak-crypto command reads the output of IronSocketLayer's probe, IronSecureShell's key scan and IronSecureMail's linter. It reports lattice-alone use, classical-only key exchange and algorithms outside the profile, each finding citing the advisory row it rests on and the input it came from (on a branch). It is not yet live traffic detection: a passive observer that reads captured traffic is designed but not built.


The other documents

The CISA alert on agentic offensive frameworks is operational: limit internet-facing assets, patch, adopt phishing-resistant MFA, use least privilege, segment, collect logs, watch outbound traffic. It asks nothing of a cryptographic library. Our own practices bear on the same risks without being CISA requirements. IronCrypto has no third-party dependencies, and IronSocketLayer, IronPKI, IronKeys, IronPrivacyGuard, IronSecurity, IronSecureShell and IronSecureMail build on nothing outside the stack. Legacy primitives are refused, and IronCrypto provides authentication building blocks: OPAQUE, Argon2id, and Ed25519, ECDSA and ML-DSA signatures.

The coordination guide is organisational work between military installations and the utilities and governments that supply them. It contains nothing about cryptography or software. A library can at most supply inputs to that work, such as a component inventory and the provenance of its test vectors.


Why this approach, for what comes next

More and more of the code that will carry out these advisories is written by AI agents. An agent asked to "make this post-quantum" will reach for whatever it remembers, and a prose security guide does not stop it from choosing ML-KEM-768 alone, comparing a tag with ==, or reusing a nonce. The advisories' requests only hold if the tools the agent calls enforce them.

The IronSecurity stack is built so the constraints are machine-readable and enforced, not merely documented:

  • Ask, don't remember. ic recommend <intent> --json returns the choice, the reasoning, the rejected alternatives with reasons, and the exact Rust path. If the right algorithm is not in the build, it answers unavailable instead of substituting one that silently breaks a requirement.
  • Constraints with severities. ic ontology show <algorithm> --json gives exact parameter bounds and rules marked critical, serious or advisory.
  • Rules sent on connect. The library's rules, no-lattice-alone among them, are in the MCP server's instructions when an agent connects, and a test fails if any rule is missing.
  • A linter for the code the agent wrote. ic lint, and crypto_lint over MCP, name the rule a line breaks.
  • APIs that make the mistake impossible. Sealer chooses every nonce and Opener refuses replays. In ic-ratchet, the end-to-end messaging protocol now in development, an encrypted or decrypted message is released only after the next session state has been saved. The types enforce this, so a crash cannot roll a session back into reusing a message key.
  • Refusals that say what to do instead. IronSecureShell and IronSecureMail refuse legacy algorithms by name, each with the reason and the modern alternative, and every command takes --json with structured errors, stable ids, and whether a retry can help.
  • Profiles as data. An exclusive national-security profile is a list the software checks, the same list a test enumerates, not a paragraph an agent has to interpret.
  • Machine-checked kernels, not assurances. Many of IronCrypto's x86-64 assembly kernels carry functional proofs through IronProof, solved by SMT solvers over a CPU-tested model of the instructions. Each proof covers its block from the input bounds its map documents to its output bounds. They are not proof-checked, they do not cover every kernel, and where a proved block is tied to the Rust that calls it, that tie is our reading of the call sites. This is not a formal verification of the stack, and we do not claim one: no ML-KEM or ML-DSA routine has a functional proof, and no result covers a whole KEM, a signature scheme or a protocol's negotiation. What it does mean is that the arithmetic underneath the whole stack has been checked by a machine rather than reviewed by eye, and that the list of what is not proved is published alongside the list of what is.
  • One library, not twelve copies. Twelve products share one cryptographic implementation. A weakness found once is fixed once, and the inventory the advisory's first action asks for is a single dependency rather than a survey.
  • Small enough for the devices. IronCrypto is no_std with zero third-party crates and no C toolchain, and its constant-time gate runs on x86-64, AArch64 and three embedded targets. The same algorithms and the same refusals go into a microcontroller as into a server.

The next generation of internet-connected software and devices will be written largely by agents, deployed in numbers no review process can inspect by hand, and expected to outlive the cryptography it was born with. That combination is why the advisories ask for agility rather than only for new algorithms, and it is what this stack is built for: machine-readable constraints an agent cannot misread, one implementation to replace rather than many to find, proofs where proofs are possible, and an off switch for a hardness assumption that can be pulled at run time. A library that merely contains ML-KEM does not give you that.


The rest of our projects build on it

The IronSecurity stack is the security foundation for Nervosys's other projects, so the hardening described here reaches them too. HyperMachine, our agentic-first hypervisor framework for type-1, type-2, container and sandbox workloads, takes its cryptography from IronCrypto. IronOS, our operating system designed from the ground up for use by people and agents, uses IronCrypto, including its hash-based LMS and SLH-DSA signatures, and IronSocketLayer for TLS. IronChat uses IronCrypto and IronSocketLayer, and will take its end-to-end encryption from ic-ratchet. None of them carries its own cryptography. When the stack gains a hybrid, refuses a weakened algorithm or tightens a profile, each project picks up the change by updating one dependency, instead of auditing a copy of its own.


CNSA 2.0 by default, and what we recommend

We are making the NSA's CNSA 2.0 profile the default across the stack. When nothing is configured, each product prefers ML-KEM-1024 with P-384 for key establishment, ML-DSA-87 with ECDSA P-384 for the signatures it makes, AES-256-GCM and SHA-384. Most of the public internet does not yet offer the CNSA hybrid: today's browsers and large providers offer X25519MLKEM768. So the default accepts another post-quantum hybrid as a fallback, never a classical-only key exchange, and says when it has fallen back and why. For systems that must meet the advisory's fifth action, the exclusive profile refuses everything outside CNSA 2.0. This work is on branches, not yet in a release.

We recommend the stack above for every job these documents name, and the status column is the honest state of each part today.

Until a browser offers SecP384r1MLKEM1024, a server built on the stack gives current browsers the X25519MLKEM768 hybrid and reaches the full CNSA hybrid with clients that offer it, such as IronSocketLayer, ic-rustls or OpenSSL 3.5 and later. These are recommendations, not certifications: no agency approves the products, and IronCrypto is not CMVP validated.


What still takes years

Following the guidance in our own products is the part we control. The wider ecosystem will take years to catch up, and some of its limits are hard ones:

  1. Post-quantum signed tokens do not fit in HTTP cookies. An ML-DSA-87 signature alone is 4,627 bytes (FIPS 204), and browsers are only required to support 4,096 bytes per cookie (RFC 6265).
  2. Public certificate authorities do not yet issue post-quantum certificates for the web; post-quantum certificates are available only in private PKI.
  3. Large post-quantum tokens exceed the header limits of web servers, reverse proxies, API gateways, load balancers and web application firewalls. An ML-DSA-87 signature is 6,170 characters once base64url-encoded for a token, three quarters of the 8 KB of request headers that AWS WAF inspects.
  4. Post-quantum public keys and signatures make X.509 certificate chains much larger. Each ML-DSA-87 certificate carries a 2,592-byte public key and a 4,627-byte signature, so a chain grows by kilobytes per certificate.
  5. Larger cryptographic artifacts cost more bandwidth in every handshake. A server flight carrying an ML-DSA-87 chain no longer fits in TCP's initial window of about 14,600 bytes (RFC 6928), so a cold connection needs another round trip.
  6. Cloud key management services support post-quantum algorithms only in part. AWS KMS has offered ML-DSA since June 2025, while Azure Key Vault Managed HSM's key types list no ML-DSA or ML-KEM.
  7. Most identity providers do not yet sign tokens with post-quantum algorithms.

We intend to address all seven, and we do not expect that to take years. Work on all seven is now underway. Two new agentic-first Rust projects in the IronSecurity stack take post-quantum identity and tokens, and key management. The rest goes into projects named earlier in this post: IronPKI for certificates and chain size, IronSocketLayer and ic-rustls for handshake size, and IronKeys for cloud key management services. It is early: none of this is released, the new projects are not named here yet, and we will name them when there is something to show.


How we check our own claims

  • Published test vectors only. NIST CAVP and Project Wycheproof files are kept byte-exact in the repository with their hashes checked. Where no published vectors exist, as for Signal's ratchet specifications or OpenSSH's packet cipher, we write the specification out again independently and compare. We do not invent vectors.
  • Break it and watch the test fail. Every rule in this post was deliberately broken and the test seen to fail before the work was accepted. Some of those breaks found gaps in our own tests, which we then closed.
  • Interoperability with the reference implementations. OpenSSH 9.5's client against IronSecureShell's server, and IronSecureShell's client against OpenSSH 10.0's server, including the default hybrid key exchange; IronSecureMail, IronPKI and IronSocketLayer against OpenSSL.
  • A constant-time gate on compiled code, across x86-64, AArch64 and three embedded targets, and, through IronProof, functional proofs of many of IronCrypto's x86-64 assembly kernels. Each proof covers a block from its documented input bounds to its output bounds; where a proved block is tied to the Rust that calls it, that tie is our reading of the call sites.

The NSA advisory carries a disclaimer we repeat because it matters: "Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not constitute or imply its endorsement, recommendation, or favoring by the United States Government, and this guidance shall not be used for advertising or product endorsement purposes." This post describes our engineering response. It is not an endorsement claim, and IronCrypto is not CMVP validated.

IronCrypto 0.5.0 is available now: cargo add ironcrypto@0.5.0, or browse the source at github.com/nervosys/IronCrypto.

Per aspera ad astra.

Intelligence Briefings

Subscribe for new dispatches

Research updates, technical deep-dives, and announcements from the frontier of embodied AI — delivered to your inbox.

Check your inbox to confirm your subscription.