Kctf Ml Backdoor Linear
SkillWeb & browsingLets your agent solve KCTF machine-learning backdoor challenges by analyzing small model weights directly.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Kctf Ml Backdoor Linear skill
About this skill
Solve KCTF model backdoors and small linear/ReLU crackmes from raw weights. Use when the artifact is a safetensors/torch model, token-id-as-feature network, tiny classifier, or a prompt gated by linear inequalities and argmax backdoors.
What this skill tells your AI
The instructions your AI receives, as published by manyuegong33/r0crawl_skills in skills/kctf-ml-backdoor-linear/SKILL.md and read by ahel’s review.
Workflow
- Parse the raw model file first; do not trust the front-end wrapper.
- Identify the feature path:
- token ids used as floats
- a small dense/ReLU bottleneck
- a sparse
lm_heador classifier row that dominates the output
- Split the problem into:
- feasibility constraints: hidden units that must be zero
- objective constraint: the winning logit must beat the fail logit
- Solve the linear system or linear program on the visible constraints.
- Round only after checking the residual is effectively zero.
- Decode the candidate with the challenge charset and verify it against the model.
Solver pattern
Use the supplied script for small KCTF model crackmes:
python scripts/solve_backdoor.py path/to/model.safetensors
The script:
- reads safetensors directly
- extracts
dense.weight,dense.bias,lm_head.weight,lm_head.bias - solves the bottleneck constraints
- prints the candidate prompt
- replays the forward pass to confirm the success token wins
When to use
safetensors,model.safetensors,state_dict,torch- 16/21/64-style toy models
- prompt-gated challenge binaries
- tiny classifiers with an obvious
success/failrow
Notes
- Prefer numpy/scipy over torch for analysis.
- If the solution is integer-valued, use the exact rounded vector only after residual check.
- If multiple candidates survive, verify by manual forward evaluation instead of guessing.
Signals
- GitHub stars
- 285
- Forks
- 100
- Last commit
- Sep 2026
ahel review
S4info
community integration, published by manyuegong33, not linear
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Catalog kind
- skill
- Key
kctf-ml-backdoor-linear- Source
- github.com/manyuegong33/r0crawl_skills