Skip to content
Z

Zion

secure connetion established

Created on 22nd March 2026

•

Z

Zion

secure connetion established

The problem Zion solves

The Problem It Solves

APIs are the most attacked surface on the internet — yet most
developers ship them with zero adversarial testing. They rely on
monitoring tools that watch traffic and fire alerts. But those
tools never answer the real question: does my defense actually
work against a real attacker?

Zion answers that question.

Who it helps and how

Developers building APIs — Zion acts as an automated red-team.
Before you ship, run Zion against your endpoints. It fires 7
real attack patterns (token replay, credential stuffing, DDoS
flood, endpoint scraping, parameter fuzzing, rate abuse, anomaly)
and tells you exactly which ones your API is vulnerable to — with
a risk score, a threat type, and a one-click mitigation policy.

Security teams — Instead of writing manual pen-test scripts,
teams get a continuously running adversarial simulation. The RL
attacker probes defenses, learns what works, and escalates. Every
incident is logged immutably on Algorand testnet — tamper-proof,
timestamped, and audit-ready for SOC2 and ISO 27001 compliance.

Startups and early-stage products — Most small teams can't
afford a security audit. Zion runs locally, costs nothing, and
surfaces the top vulnerabilities before attackers find them first.

What it makes safer

  • Authentication flows — detects token replay and credential
    stuffing before they compromise user accounts
  • Public endpoints — detects DDoS-style floods and applies
    endpoint protection (503 drop) automatically
  • Internal APIs — catches endpoint scraping and parameter
    fuzzing that maps your attack surface before a real breach

What makes it different

Most security tools are passive. Zion is active. The Reinforcement
Learning attacker inside Zion observes how tightly your defenses
are configured and picks the attack most likely to slip through.
When it gets blocked, it learns and tries something smarter. When
it evades, a new policy is generated. The system co-evolves —
attacker and defender both getting sharper with every episode.

The result is an API that has been genuinely battle-tested, not
just monitored.

Challenges we ran into

Challenges We Ran Into

1. Sequential blockchain logging froze the entire server

The single biggest technical crisis of the build. Our initial
Algorand logging called wait_for_confirmation() synchronously
inside the FastAPI request handler. During a 200-request attack
burst, every detection triggered a blocking ~4.5s Algorand
confirmation call — stacking sequentially, the server froze for
over 15 minutes handling a single attack simulation.

Fix: Moved log_incident() to a background thread using
Python's threading.Thread(daemon=True). The API now returns
instantly and Algorand logs asynchronously. This required
restructuring how we passed incident data between the middleware
and the blockchain layer, and adding a local SQLite cache so the
frontend could read chain records without hitting the Algorand
API on every poll.


2. Isolation Forest flagging normal traffic as threats

After integrating the feature extractor with live server traffic
(as opposed to synthetic training data), the model started
producing false positives — normal requests scoring above the
0.75 threshold. The training distribution didn't match real
request patterns.

Fix: Exported actual SQLite request logs from Day 2
integration testing, added them as normal training samples, and
retrained the model. Also added a two-layer detection design —
the Isolation Forest gives a continuous risk score, but the rule
engine must also confirm a named pattern (token_replay,
rate_flood, etc.) before enforcement fires. This dramatically
reduced false positives without raising the detection threshold.


3. In-memory feature window persisting between demo runs

The sliding-window feature extractor (tracking requests per
minute, token reuse, failed logins per IP) uses in-memory state.
After one attack simulation, the window still held attack-pattern
data — so the next demo run started with inflated scores, making
clean normal traffic look suspicious immediately.

Fix: Added a reset_state() function in
feature_extractor.py that clears all in-memory counters and
windows. Called at the start of each demo run. Critical for
consistent judge demonstrations.


4. JSON serialization crash on float risk scores

FastAPI's response serialization crashed when ML feature
extraction returned NumPy float32 values instead of native
Python float. The dashboard API handler broke silently on
certain threat payloads.

Fix: Explicitly cast all feature values and risk scores to
float() before inserting into response dicts. Added a
serialization safety wrapper in dashboard_api.py that converts
NumPy types before JSON encoding.


5. Requestly rule injection timing with burst attacks

When run_demo.py fired 200 concurrent attack requests and
simultaneously activated a Requestly rule via the API, some
requests escaped interception because the rule wasn't yet active
at the node level. The burst started before the rule propagated.

Fix: Added a 1.2s delay between activate_attack() and the
attack burst start. Also restructured run_demo.py to confirm
rule activation via list_active_rules() before firing —
treating it like a readiness check before the attack phase.

Tracks Applied (5)

Web3

markdown## Web3 / Blockchain — Algorand Every cyber incident Zion detects gets written permanently to Algorand TestNet...Read More

AI/ML

Zion's core is a two-layer machine learning detection pipeline. The first layer is an Isolation Forest — an unsupervise...Read More

Open Innovation

Zion addresses a genuine gap in the security tooling market. Professional API security audits cost thousands of dollars...Read More

Smolify AI track

Smallify AI powers Zion's policy generation engine. When a threat is detected, the full threat context — attack type, ...Read More

Smolify AI

Best Beginners' Team

Every member of this team was learning at least one major component for the first time during this project. Blockchain ...Read More

Discussion

Builders also viewed

See more projects on Devfolio