
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
kxco-pq-agent
Advanced tools
Post-quantum identity for AI agents and autonomous systems — a KYC-verified institution sponsors an ML-DSA-65 keypair and locked capability scope for any agent that cannot pass KYC itself.
Post-quantum identity for AI agents and autonomous systems.
AI systems cannot pass KYC. An LLM, robot, IoT device, or daemon has no legal standing to authenticate itself to a regulated network. This package solves that with a delegation model: a KYC-verified institution sponsors the agent by signing its ML-DSA-65 public key alongside a locked capability scope. The agent then signs its own relay operations independently, presenting the sponsor's credential as proof of authority. The KXCO relay validates both signatures before accepting any intent — the institution's approval is cryptographically bound to every action the agent takes.
Use this package when deploying LLMs, robots, IoT devices, or daemons that need to perform on-chain operations — payments, attestation anchoring, audit checkpointing — with verifiable, auditable scope controlled by a licensed institution.
npm install kxco-pq-agent
import { KxcoAgentIdentity } from 'kxco-pq-agent'
// sponsor is a KxcoIdentity from kxco-pq-sdk
// it must have .kid (string) and .sign(Uint8Array) -> Promise<Uint8Array>
const agent = await KxcoAgentIdentity.create({
sponsor,
label: 'Settlement Bot',
agentType: 'llm',
scope: {
attestations: { purposes: ['trade-confirmation'] },
auditLog: true,
},
expiresIn: '90d',
})
// Connect to the relay and anchor an attestation
const client = agent.toChainClient('https://relay.kxco.ai')
const result = await client.anchorAttestation({
payloadHash: '9f86d081884c7d65...',
purpose: 'trade-confirmation',
})
// { txHash: '0x...', blockNumber: 228345 }
The scope is signed by the sponsor at issuance and cannot be changed. To update an agent's permissions, revoke and re-issue.
scope: {
payments: {
maxPerTransaction: 5000, // maximum ARMR per transfer (positive number)
maxPerDay: 50000, // rolling daily cap across all transfers
allowedRecipients: [ // EVM address (0x + 40 hex) or KXCO kid (16 hex chars)
'0xAbCdEf...',
'aa29f37ab7f4b2cf',
],
},
attestations: {
purposes: ['trade-confirmation', 'settlement-receipt'], // allowed purpose strings
},
auditLog: true, // permits anchorAuditRoot calls
credentials: false, // permits credential management (use sparingly)
}
All fields are optional. Omit a section entirely to deny that capability. The scope hash (SHA-256 of the JCS-canonical scope JSON) is stored on-chain at issuance so the relay can verify integrity.
KxcoAgentIdentity.create(opts) → Promise<KxcoAgentIdentity>
Generates an ML-DSA-65 keypair for the agent and has the sponsor sign the credential.
| Option | Type | Required | Description |
|---|---|---|---|
sponsor | { kid: string, sign(msg: Uint8Array): Promise<Uint8Array> } | Yes | The sponsoring KxcoIdentity |
label | string | Yes | Human-readable name for this agent |
agentType | 'llm' | 'robot' | 'iot' | 'process' | Yes | Category of the agent |
model | string | No | Model, firmware, or version identifier |
scope | object | Yes | Capability manifest (see above) |
expiresIn | string | number | Yes | Duration: '30d', '1y', or seconds as a number |
chain | KxcoChain | No | If provided, registers the credential on-chain at issuance |
agent.toChainClient(relay, opts?) → AgentChainClient
Returns a relay client that automatically attaches the agent's credential and signature to every request.
| Option | Type | Default | Description |
|---|---|---|---|
relay | string | — | Relay base URL, e.g. 'https://relay.kxco.ai' |
opts.timeout | number | 10000 | Request timeout in milliseconds |
agent.sign(message) → Promise<Uint8Array>
Signs an arbitrary message with the agent's ML-DSA-65 private key.
agent.export() → object
Serialises the full identity including the secret key. Store securely.
KxcoAgentIdentity.import(exported) → Promise<KxcoAgentIdentity>
Restores an agent identity from a previously exported object.
KxcoAgentIdentity.verify(credential, opts?) → Promise<{ valid, agentKid, sponsorKid, scope, ... }>
Verifies an agent credential envelope.
opts.sponsorPublicKey: checks format and expiry only.opts.sponsorPublicKey (Uint8Array): performs full ML-DSA-65 signature verification.KxcoAgentIdentity.revoke(agentKid, { chain, reason? }) → Promise
Revokes an agent credential on-chain. chain must be a KxcoChain instance belonging to the original sponsor.
Returned by agent.toChainClient(). All methods return Promise<{ txHash: string, blockNumber: number }>.
client.anchorAttestation({ payloadHash, purpose })
Anchors an attestation envelope hash on-chain. Requires scope.attestations with the matching purpose listed.
client.anchorAuditRoot({ rootHash, entryCount })
Anchors an audit log checkpoint on-chain. Requires scope.auditLog: true.
client.transfer({ to, amount })
Submits a payment intent. to is an EVM address or KXCO kid. amount is in ARMR. The relay enforces allowedRecipients, maxPerTransaction, and maxPerDay from the scope.
| Type | Use |
|---|---|
llm | Large language models and AI assistants |
robot | Physical robots and automated machinery |
iot | IoT devices and sensors |
process | Automated software processes and daemons |
| Package | Purpose |
|---|---|
kxco-post-quantum | ML-DSA-65 and ML-KEM primitives |
kxco-pq-sdk | KxcoIdentity — human and institution identities |
kxco-pq-agent | This package — machine and agent identities |
Contact: hello@kxco.ai | https://kxco.ai
Shayne Heffernan and John Heffernan — KXCO by Knightsbridge
FAQs
Post-quantum identity for AI agents and autonomous systems — a KYC-verified institution sponsors an ML-DSA-65 keypair and locked capability scope for any agent that cannot pass KYC itself.
The npm package kxco-pq-agent receives a total of 149 weekly downloads. As such, kxco-pq-agent popularity was classified as not popular.
We found that kxco-pq-agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.