Skip to main content

A self-hosted web-security range, leveled tutorial-to-impossible — the practice town for wraith and hickok.

Project description

deadwood

A self-hosted web-security range that doubles as a tutorial — graded levels from the first trivial injection to the deliberately near-impossible. It's the practice town for the dead man's hand: scout each room with wraith, take it with hickok, capture the flag, then read the vulnerable source and the fix.

Dependency-free (stdlib + SQLite). Runs on 127.0.0.1 only.

PyPI CI Release Python 3.10+ MIT

⚠️ deadwood is intentionally vulnerable, by design. It refuses to bind anything but loopback unless you force it. Never expose it to a network, a VM bridge, or the internet. Attack only this app, on your own machine.

Install

pipx install deadwood-sec      # gives you the `deadwood` command

Or from a clone: pip install -e . — or run it with no install: PYTHONPATH=src python3 -m deadwood.

Run it

deadwood serve                 # http://127.0.0.1:8666  (the town map)
deadwood levels                # list the rooms and your progress
deadwood learn first-blood     # a level's briefing: objective, hints, source, the fix
deadwood flag first-blood 'DEADWOOD{...}'   # submit a captured flag

Open the map in a browser, pick a room, and point your tools at the app URL it gives you (e.g. http://127.0.0.1:8666/l/first-blood/app?id=1).

How a level works

Every room is the same shape, easy to the hard:

  • a realistic app (the fictional Deadwood Telegraph & Trust Co. — employees, customers, accounts, telegrams) with one real flaw;
  • a flag to capture (DEADWOOD{...}, unique to your install);
  • progressive hints — reveal them one at a time, only if you want them;
  • the vulnerable source and how to fix it, once you ask (spoilers).

Play blind for the CTF, or lean on the hints and learn for the tutorial. Your captures are tracked locally.

The levels

Tutorial → impossible. Each maps to a technique you can practise by hand or drive with hickok/wraith:

# Room Tier Vector
1 First Blood Tutorial SQL injection — UNION (in-band)
2 Whispers Easy SQL injection — boolean-blind
3 The Telegraph Medium SQL injection — time-based blind
4 Back Door Medium OS command injection → shell
5 The Bouncer Medium SQL injection — authentication bypass
6 Sleight of Hand Hard UNION behind a quote/catalog filter
7 The Cipher Hard Server-side template injection → RCE

(the Brutal and Impossible rooms — a WAF'd blind injection and the Vault — land next.)

Pairing with wraith & hickok

deadwood is the range the tools grew up on. A typical run:

deadwood serve &                                   # the town
hickok sql -u 'http://127.0.0.1:8666/l/first-blood/app?id=1' -p id --dump secrets

When a tool can't take a room, that's a bug to fix in the tool; when a room is too easy, that's a room to harden. They sharpen each other.

Tests

pip install -e ".[dev]" && pytest

The suite checks the engine (flags, registry, per-level isolation, the seeded world) and that each level's flaw behaves as taught. See CONTRIBUTING.md to add a room and SECURITY.md for the responsible-use policy.

License

MIT.


Deadwood, 1876 — where the dead man's hand was dealt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deadwood_sec-0.2.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deadwood_sec-0.2.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file deadwood_sec-0.2.0.tar.gz.

File metadata

  • Download URL: deadwood_sec-0.2.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deadwood_sec-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96eb73775b0e5ee156f5109a0768922ea5e837df613945fd4d9a24bcbe7eee1e
MD5 ac3f222a8080da6327888af2a755c9eb
BLAKE2b-256 bf69813f40323d8b3dfac6e5a727421473386d21447c0c2994143a62acd8d1ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadwood_sec-0.2.0.tar.gz:

Publisher: release.yml on gusta-ve/deadwood

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deadwood_sec-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: deadwood_sec-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for deadwood_sec-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 160cb621d8b7664198d6cd0ca8a9915f98f64dc0fb45b9a589df8d74b62865a8
MD5 ca3a545162e5cb2c9587ea84aeaddcd2
BLAKE2b-256 8be7f7de8149df677c50e1e0a56f637c2e5f44e061ecb5d7fa6b90a2d0be9dcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for deadwood_sec-0.2.0-py3-none-any.whl:

Publisher: release.yml on gusta-ve/deadwood

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page