# magicmadeint/wipedown — AlpLab Radar Static Code Audit

- Ring: `watch`
- Category: `agents`
- Overall score: `2.6/5`
- Implementation check: `partial`
- Maturity: `dormant`
- Audited commit: `592a7b9d779b` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/magicmadeint/wipedown
- Radar entry: https://radar.alplab.co/#repo/magicmadeint/wipedown
- License: `MIT`
- Tags: `prompt-injection`, `sanitizer`, `web-scraper`, `llm`, `agent-security`, `cli`

## Summary

A small Python CLI/localhost-proxy (typer+fastapi) that strips HTML to visible prose, regex-flags common prompt-injection patterns, and rewrites the remainder through an OpenAI-compatible LLM before it reaches a coding agent.

## Implementation Check

The core fetch/serve/structured-API paths are genuinely implemented (wipedown/cli.py fetch/serve, wipedown/sanitizer.py wipe_text/wipe_url, wipedown/engine.py WipeDown), but README.md advertises a Docker quick-start with no Dockerfile in the repo, inflates configure --auto as evaluating 'hardware bounds' when cli.py configure only probes localhost ports 8080/11434, and calls itself v1.0.0 while pyproject.toml says 0.3.0 and __init__.py says 1.0.1.

## When to Use

Useful as an experimental extra pre-filter when piping web text into a coding agent and you already run a local OpenAI-compatible LLM (llama.cpp/Ollama). Do not treat it as a security boundary: sanitization fails open when the LLM is down, and the serve proxy is an unauthenticated SSRF/file-read endpoint.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 2.5/5 |
| usability | 3.0/5 |
| reliability | 2.0/5 |
| security | 2.5/5 |
| integration | 3.0/5 |

## Code Evidence

wipedown/cleaner.py structural_strip() decomposes script/style/iframe/header/footer/nav and display:none/visibility:hidden elements, then normalizes zero-width/nbsp characters; get_scrape_targets() rewrites x.com/twitter.com URLs to four hardcoded NITTER mirrors (NITTER_INSTANCES). wipedown/sanitizer.py signature_check() applies eight regex patterns (ignore-previous, jailbreak, base64, curl/wget/rm-rf, JSON system-role) plus an imperative-density heuristic (>=7 of must/now/execute/run/... in <2500 chars); sanitize_with_llm() streams an OpenAI-compatible /chat/completions call with reasoning_content passthrough, max_tokens=2048, temperature 0.1; chunk_and_sanitize() splits on 8000-char paragraph boundaries. wipedown/engine.py WipeDown class wraps wipe_text/wipe_url with structured=True returning {status, source, content, metadata.safety_report}. wipedown/cli.py defines typer commands fetch (saves sanitized .md via _safe_filename), serve (FastAPI /fetch?url= endpoint returning PlainTextResponse), test (two-pass smoke check requiring a live LLM), and configure --auto (probes 127.0.0.1:8080/v1/models and 127.0.0.1:11434/api/tags, writes .env). _process_url() in cli.py accepts file:// and reads arbitrary local paths with Path(url[7:]).read_text().

## Issues Found

1) Fail-open sanitization: wipedown/sanitizer.py sanitize_with_llm() catches all exceptions and returns the ORIGINAL unsanitized text ('Falling back to raw text'), while cli.py fetch still prints the green 'Stage 2 Complete: Semantic sanitization' line — a security tool that silently passes unfiltered content when the LLM is unreachable. 2) Unauthenticated localhost proxy: cli.py serve exposes /fetch?url= with no auth, no scheme/host allowlist, no SSRF guard (arbitrary internal URLs fetchable) plus file:// support in _process_url() — any local process can read arbitrary local files (e.g. file:///home/user/.ssh/id_ed25519) through http://127.0.0.1:8010/fetch; worse if run with --host 0.0.0.0. 3) README.md Docker quick-start is unbuildable (no Dockerfile in the tree) and configure --auto is overclaimed. 4) Version drift across pyproject.toml (0.3.0), wipedown/__init__.py (1.0.1), README (v1.0.0), latest release (v0.2.0), and mismatched User-Agent strings ('WipeDown/0.3' vs 'WipeDown/1.0'). 5) ollama==0.4.7 is a declared dependency in pyproject.toml but never imported anywhere. 6) `wipedown test` (cli.py test) does not exit non-zero when the signature scan is bypassed and hard-requires a live LLM, so it is not a usable CI gate.

## Key Risks

Requires a running OpenAI-compatible LLM endpoint (default http://127.0.0.1:8080/v1, model qwen-3.6) for the semantic stage; without one it degrades silently to raw passthrough. No tests, no CI, no lockfile (maturity signals confirm tests:false, ci:[]). Dormant: 33 commits all within 2026-05-24..2026-06-01, nothing since; cap is watch. Signature regexes are coarse and will false-positive on ordinary technical prose (e.g. any mention of base64, 'you must', 'powershell'); nothing was executed, so no runtime behavior, sanitization quality, or mirror liveness was verified.

## Reviewed Files

- `README.md`
- `SKILL.md`
- `pyproject.toml`
- `LICENSE`
- `wipedown/__init__.py`
- `wipedown/cleaner.py`
- `wipedown/engine.py`
- `wipedown/sanitizer.py`
- `wipedown/cli.py`
