Kctf Ml Backdoor Linear
SkillWeb & browsingLets your agent solve KCTF machine-learning backdoor challenges by analyzing small model weights directly.
Use Kctf Ml Backdoor Linear in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Kctf Ml Backdoor Linear and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Kctf Ml Backdoor Linear skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
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
- 294
- Forks
- 103
- Last commit
- Sep 2026
ahel review
S4info
community integration, published by manyuegong33, not linear
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
kctf-ml-backdoor-linear- Source
- github.com/manyuegong33/r0crawl_skills
github.com/manyuegong33/r0crawl_skills
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonbrowser-use
Skill · browser-use
More in Web & browsingwebapp-testing
Skill · anthropics
More in Web & browsingplaywright-cli
Skill · microsoft
More in Web & browsingbenchmark
Skill · affaan-m
More in Web & browsing