Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

h4ckath0n

Latest version: v0.1.10.dev20261126

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: multiset
59 Versions
6.1K Downloads

Scan summary

h4ckath0n was last scanned on 26 Nov 2026 at version 0.1.10.dev20261126. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 59 versions; the latest 5 were published within 5 days (22–26 Nov 2026).
  • Findings: No rules fired in version 0.1.10.dev20261126.
  • Downloads: 6,075 downloads.

Versions

59 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.10.dev20261126 LATEST 26 Nov 2026 No rules fired
0.1.10.dev20261125 25 Nov 2026 No rules fired
0.1.10.dev20261124 24 Nov 2026 No rules fired
0.1.10.dev20261123 23 Nov 2026 Not shown
0.1.10.dev20261122 22 Nov 2026 Not shown

No rules fired in 0.1.10.dev20261126

Findings

Findings for v0.1.10.dev20261126. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.10.dev20261126; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

h4ckath0n

Ship hackathon products fast with a secure FastAPI bootstrap and passkey-first authentication.

What you get

  • FastAPI app factory with passkey routes mounted by default
  • Device signed ES256 JWT authentication and server-side RBAC (user, admin, scopes)
  • SQLAlchemy 2.x models with automatic table creation on startup
  • LLM wrapper around the OpenAI SDK with timeouts and retries
  • Optional password auth extra for email and password flows
  • Optional Redis extra that only adds the dependency, no integration is provided yet
  • Trace ID middleware and LangSmith environment wiring via init_observability
  • Full stack scaffold CLI that produces an API and web template

Installation

Recommended (uv)
uv add h4ckath0n

Optional extras:

uv add "h4ckath0n[password]"  # Argon2 based password auth
uv add "h4ckath0n[redis]"     # Redis dependency only
pip
pip install h4ckath0n

Scaffold a full stack project

npx h4ckath0n my-app

Quickstart

from h4ckath0n import create_app

app = create_app()

Run:

uv run uvicorn your_module:app --reload

OpenAPI docs

  • Interactive docs live at /docs when the app is running.
  • Public routes like passkey start and finish work without auth.
  • Protected routes require an Authorization: Bearer <device_jwt> header that the web template can mint after login.

Built-in routes

  • GET / — welcome message confirming the app is reachable.
  • GET /health — returns {"status": "healthy"} for load balancer and deployment checks.
Session
  • GET /auth/session — returns the current user session details.
Background Jobs
  • GET /jobs — list jobs.
  • POST /jobs — enqueue a background job.
  • GET /jobs/{job_id} — get the status and result of a job.
Uploads
  • GET /uploads — list uploaded files.
  • POST /uploads — upload a new file.
  • GET /uploads/{upload_id} — get metadata for a specific upload.
  • GET /uploads/{upload_id}/download — download the uploaded file.
LLM Chat
  • POST /llm/chat — send a message to the language model.
  • POST /llm/chat/stream — stream responses from the language model.

Auth model

Passkeys by default

The default authentication path uses passkeys (WebAuthn). The core flows are:

  1. POST /auth/passkey/register/start and POST /auth/passkey/register/finish
  2. POST /auth/passkey/login/start and POST /auth/passkey/login/finish
  3. POST /auth/passkey/add/start and POST /auth/passkey/add/finish for adding devices
  4. GET /auth/passkeys, POST /auth/passkeys/{key_id}/revoke, and PATCH /auth/passkeys/{key_id} for management
Device signed JWTs

After login or registration, the client binds a device key and mints short lived ES256 JWTs. The server uses the kid header to load the device public key and verifies the signature and aud claim. JWTs contain only identity and time claims, no roles or scopes.

ID scheme
  • User IDs are 32 characters and start with u
  • Passkey IDs are 32 characters and start with k
  • Device IDs are 32 characters and start with d
  • Password reset tokens use UUID hex, not the base32 scheme

Secure endpoint protection

from h4ckath0n import create_app
from h4ckath0n.auth import require_user

app = create_app()


@app.get("/me")
def me(user=require_user()):
    return {"id": user.id, "role": user.role}

Admin only endpoint:

from h4ckath0n.auth import require_admin


@app.get("/admin/dashboard")
def admin_dashboard(user=require_admin()):
    return {"ok": True}

Scoped permissions:

from h4ckath0n.auth import require_scopes


@app.post("/billing/refund")
def refund(user=require_scopes("billing:refund")):
    return {"status": "queued"}

Password auth (optional)

Password routes mount only when the password extra is installed and H4CKATH0N_PASSWORD_AUTH_ENABLED=true.

  • POST /auth/register
  • POST /auth/login
  • POST /auth/password-reset/request
  • POST /auth/password-reset/confirm

Password auth is only an identity bootstrap. It binds a device key but does not return access tokens, refresh tokens, or cookies.

Configuration

All settings use the H4CKATH0N_ prefix unless noted.

Variable Default Description
H4CKATH0N_ENV development development or production
H4CKATH0N_DATABASE_URL sqlite:///./h4ckath0n.db SQLAlchemy connection string
H4CKATH0N_AUTO_UPGRADE false Auto-run packaged DB migrations to head on startup
H4CKATH0N_RP_ID localhost in development WebAuthn relying party ID, required in production
H4CKATH0N_ORIGIN http://localhost:8000 in development WebAuthn origin, required in production
H4CKATH0N_WEBAUTHN_TTL_SECONDS 300 WebAuthn challenge TTL in seconds
H4CKATH0N_USER_VERIFICATION preferred WebAuthn user verification requirement
H4CKATH0N_ATTESTATION none WebAuthn attestation preference
H4CKATH0N_PASSWORD_AUTH_ENABLED false Enable password routes when the extra is installed
H4CKATH0N_PASSWORD_RESET_EXPIRE_MINUTES 30 Password reset token expiry in minutes
H4CKATH0N_BOOTSTRAP_ADMIN_EMAILS [] JSON list of emails that become admin on password signup
H4CKATH0N_FIRST_USER_IS_ADMIN false First password signup becomes admin
OPENAI_API_KEY empty OpenAI API key for the LLM wrapper
H4CKATH0N_OPENAI_API_KEY empty Alternate OpenAI API key for the LLM wrapper
H4CKATH0N_REDIS_URL empty Redis connection string
H4CKATH0N_JOBS_INLINE_IN_DEV true Run background jobs inline in development mode
H4CKATH0N_JOBS_DEFAULT_QUEUE default Default Redis queue for background jobs
H4CKATH0N_STORAGE_BACKEND local Storage backend
H4CKATH0N_STORAGE_DIR ./.h4ckath0n_storage Local directory for uploaded files
H4CKATH0N_MAX_UPLOAD_BYTES 52428800 Maximum upload size in bytes (50 MiB)
H4CKATH0N_APP_BASE_URL http://localhost:5173 Application base URL for email links
H4CKATH0N_EMAIL_BACKEND file Email backend: file or smtp
H4CKATH0N_EMAIL_FROM noreply@localhost Sender address for outgoing emails
H4CKATH0N_EMAIL_OUTBOX_DIR ./.h4ckath0n_email_outbox File-backend email output directory
H4CKATH0N_SMTP_HOST empty SMTP server host
H4CKATH0N_SMTP_PORT 587 SMTP server port
H4CKATH0N_SMTP_USERNAME empty SMTP authentication username
H4CKATH0N_SMTP_PASSWORD empty SMTP authentication password
H4CKATH0N_SMTP_STARTTLS true Enable SMTP STARTTLS
H4CKATH0N_SMTP_SSL false Enable SMTP-over-SSL
H4CKATH0N_DEMO_MODE false Enable demo mode

In development, missing RP_ID and ORIGIN fall back to localhost defaults with warnings. In production, missing values raise a runtime error when passkey flows start.

Postgres readiness and migrations

Set a Postgres database URL to run against Postgres:

H4CKATH0N_DATABASE_URL=postgresql+psycopg://user:pass@host:5432/dbname

create_app() calls Base.metadata.create_all on startup.

h4ckath0n also ships an operator CLI and packaged Alembic migrations:

h4ckath0n db ping
h4ckath0n db migrate upgrade --to head --yes

If startup or db ping reports that the database schema is behind, run:

h4ckath0n db migrate upgrade --to head --yes

If startup or db ping reports that the database was initialized without Alembic versioning, run:

h4ckath0n db migrate stamp --to <baseline> --yes
h4ckath0n db migrate upgrade --to head --yes

For legacy create_all deployments in current releases, use <baseline>=head.

LLM usage

from h4ckath0n.llm import llm

client = llm()
resp = client.chat(
    system="You are a helpful assistant.",
    user="Summarize this in one sentence: ...",
)
print(resp.text)

The wrapper raises a RuntimeError if no API key is configured.

Observability

init_observability(app) adds an X-Trace-Id header to responses and can set LangSmith environment variables if ObservabilitySettings.langsmith_tracing is true. It does not instrument FastAPI, LangChain, or OpenAI calls by itself.

from h4ckath0n import create_app
from h4ckath0n.obs import ObservabilitySettings, init_observability

app = create_app()
init_observability(app, ObservabilitySettings(langsmith_tracing=True))

Compatibility and operational notes

  • Passkeys require HTTPS in production. localhost is allowed for development.
  • H4CKATH0N_RP_ID must match your production domain and H4CKATH0N_ORIGIN must include the scheme and host.
  • The last active passkey cannot be revoked. Add a second passkey first.

Development

git clone https://github.com/BTreeMap/h4ckath0n.git
cd h4ckath0n
uv sync --locked --all-extras

Quality gates:

uv run --locked ruff format --check .
uv run --locked ruff check .
uv run --locked mypy src
uv run --locked pytest -v

License

MIT. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases h4ckath0n

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229