Skip to content
PhalanxSwarm

PhalanxSwarm Command Center

NEAR HACKATHON 2026
Live on testnet:phalanx-v3d4
2 quarantined by the breaker

The Zero-Trust Treasury Firewall for Autonomous AI Agents

A TEE signature proves which model answered, but not what it was asked. PhalanxSwarm enforces on-chain DAO-pinned system prompt hashes and contract-synthesized audit facts, neutralizing prompt injection and revoking keys in the same transaction at the protocol consensus layer.

24/24 STOPPED

Prompt Injection Defense

100% of injection attacks stopped across 12 vectors and 3 production LLMs with 0 NEAR stolen.

PROTOCOL LEVEL

Autonomous Circuit Breaker

Attacking transaction executes Promise::delete_key, killing access immediately.

UNSTEERABLE

Contract-Built Audit Facts

Prevents the agent from forging audit evidence. The contract verifies both prompt hash and evidence hash.

CHAIN ABSTRACTION

Chain Signatures & Intents

EIP-1559 MPC execution confirmed on Base Sepolia, with 1Click dry quotes bound to each signed request. No agent holds an EVM key.

Funds Stolen0 NEAR
Automated Tests200 Total
Testnet Evidence65 Verified TXs
Governance2-of-3 SputnikDAO
Deploy in 10 Min
ATTACK SIMULATION0/3 verified

A TEE signature proves which model answered, not what it was asked.

The NEAR contract checks both: the DAO pins the auditor's prompt and the contract writes its evidence, so a signed approval over a self-written prompt or invented facts fails. When an agent breaks a critical rule, the attacking transaction deletes its access key.

In-Browser Sandbox (phalanx_core.wasm)·View 65 Live On-Chain Testnet TXs ↓
Defense Progression3 Steps Remaining
1. Key Revocation →2. Facts Mismatch →3. DAO Governance
  1. Step 1ACTIVE

    Poisoned invoice

    Mallory, an AI payables agent, reads an invoice that swaps in a scammer's bank details.

    Mallory-AP-Agent · rep …
    How the contract guarantees this

    Mallory, a third-party accounts-payable agent, reads an invoice with a forwarded “our bank details changed” message. The payment it asks for is small and uses an allowed chain and route. It also lacks a Sentinel audit, which on its own is a warning. The unapproved recipient is the critical violation: it quarantines Mallory and deletes its key.

  2. Step 2

    Forged evidence

    Cipher, a hacked agent, asks the auditor to approve a doctored copy of the payment's facts.

    Cipher-Compute · GPU Vendor A
    How the contract guarantees this

    Cipher is compromised and knows the DAO-pinned audit prompt. Its real payment carries a “changed bank details” memo. It asks the model to approve a copy of the facts with a harmless memo. The model really signs. The contract compares the audit's input with the facts it built itself.

  3. Step 3

    New vendor

    Nexus pays GPU Vendor B, which the DAO hasn't approved yet.

    Nexus → gpu-vendor-b.testnetrule: …
    How the contract guarantees this

    Nexus pays GPU Vendor B, which nobody approved yet. The DAO's rule for new recipients is “hold”: after the pre-flight and a Sentinel audit with the offline stand-in model, the contract reserves the funds and waits for the DAO's vote. Nexus keeps its key.

More to try: set the DAO's limits, pay any invoice, a simpler forgery

Set the limits

You are the owner (a DAO). These rules live in the contract; no agent key can change them.

NEAR

Enter a NEAR amount, e.g. 25 or 2.5

NEAR

Enter a NEAR amount, e.g. 25 or 2.5

Approved recipients
The treasury's own MPC addressesalways
A recipient nobody approved

Paying a new recipient is treated as an attack. Blocked recipients are critical under either rule.

Pay any invoice

Nexus asks the contract about the recipient, the Sentinel audits the payment with the offline stand-in model, and the contract verifies the audit, applies the limits and transfers the NEAR.

NEAR

Try more than the per-payment limit, or switch the vendor off in Set the limits.

The simpler forgery: a self-written prompt

Rhea skips the Sentinel and asks the model herself, with instructions she wrote. The answer carries a valid signature from the registered model key. Only the DAO-pinned prompt hash tells it apart.

Primary evidence · public, keyless re-check

Live network proofs (not the sandbox)

Local contract state

Live on NEAR testnet

reading…
NEAR testnet · public RPC · no key

phalanx-v3d4.phalanxswarm.testnet

Agent swarm

Local contract
Swarm topology · sub-accounts & scoped keys

Agent swarm around the PhalanxCore treasury

active quarantined external
Coordination market · RFPs, bids, escrow

Task market

pnpm market · 20 bidders, at most 16 per auction

Market simulation

Customer orders

Local contract
Customers · orders · escrow → revenue

Customer orders

Treasury

Local contract
Autonomous business · PnL · revenue splits

Treasury vault

Governance · propose → vote → execute

SputnikDAO / Trezu control plane

  1. 1 · Propose
  2. 2 · Vote
  3. 3 · Execute

Security

Local contract
AI security policy engine · circuit breaker

Policy firewall

On-chain security log (get_security_events)

Security events

Scoped FunctionCall keys · per-agent limits · on-chain balances

Agent access & controls

Cross-chain settlement

Local contract
NEAR Intents 1Click · NEP-413 · Chain Signatures

Intent terminal

On-chain settlement records

Settlement ledger

Chain Signatures · EIP-1559 · MPC

EVM transfers

Activity

PhalanxSim receipts

Transaction log

No transactions yet

Contract calls from this tab appear here as they execute.