Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add makifbaysal/tasktrooper --skill authn-sessions-and-tokensgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/makifbaysal/tasktrooper/authn-sessions-and-tokens)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/authn-sessions-and-tokens"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/authn-sessions-and-tokens/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/authn-sessions-and-tokens"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/authn-sessions-and-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.02591 |
| Opus 5.5 | $0.00027 | $0.01036 |
| Sonnet 5.5 | $0.00014 | $0.00518 |
| Haiku 4.5 | $0.00007 | $0.00259 |
Grade A, and why
authn-sessions-and-tokens scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authentication, Sessions and Tokens
Overview
Authentication bugs are rarely missing code; they are code that verifies the wrong thing, verifies with the wrong key, or trusts a value the attacker sends. Read every check as "what exactly is compared to what, and who chose each side?"
Core principle: the server decides the algorithm, the key, the audience and the identity — never the token, the header or the client.
1. Password Storage (CWE-916)
- ✅ argon2id, bcrypt (cost ≥ 10; note its 72-byte input limit), scrypt, or PBKDF2 with a high iteration count — through the framework's password hasher when there is one.
- ❌ MD5, SHA-1, SHA-256/512 (single or few rounds, salted or not), or reversible encryption of passwords.
# ❌
user.password = hashlib.sha256(pw.encode()).hexdigest()
# ✅
user.password = argon2.PasswordHasher().hash(pw) # or Django's make_password
2. JWT Verification (CWE-347)
// ❌ decode() does not verify; the header's alg is trusted
const claims = jwt.decode(token);
// ❌ no algorithm pinned: an RS256 public key can be used as an HS256 secret
const claims = jwt.verify(token, publicKey);
// ✅
const claims = jwt.verify(token, publicKey, { algorithms: ["RS256"], audience: "api", issuer: ISS });
# ❌
jwt.decode(token, options={"verify_signature": False})
# ✅
jwt.decode(token, key, algorithms=["RS256"], audience="api", issuer=ISS)
Also: alg: none accepted; exp/aud/iss not checked; the key chosen by a kid header used in a file path or SQL query; keys fetched from a token-supplied jku/x5u URL (SSRF and forged keys); a token accepted for a different audience than this service.
3. Sessions and Cookies
- Fixation (CWE-384): the session id is not rotated at login or privilege change.
- Logout and invalidation: a server-side session or refresh token that survives logout (only the cookie is cleared) — MEDIUM; sessions, refresh tokens and API tokens that survive a password change, an account disable or a role removal — HIGH when the old credential still writes.
- Cookie scope: a session cookie with
Domain=.example.comis sent to every subdomain — including one that serves user content or a third-party app; a sibling cookie with the same name and a broader path can shadow it. - Cookie flags:
HttpOnly,Secure,SameSitemissing is hardening — report only with a concrete chain (a session cookie readable by script on a page with a real XSS sink in this diff). - Token in
localStorage: not a finding by itself; it raises the impact of an XSS. - Step skipping: an endpoint reachable after the password step but before MFA completes treats the half-authenticated session as full.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +37 lines · +23 tokens per session 9412f498c878
- 1mo ago First seen · 112 lines · 45 tokens per session scan A 63c579841455
authn-sessions-and-tokens is a skill published in the GitHub repository makifbaysal/tasktrooper (123 stars, last pushed today), licensed Apache-2.0. It adds 68 tokens to every session and 2,591 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.
authn-sessions-and-tokens compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| authn-sessions-and-tokensmakifbaysal/tasktrooper | Skill | 123 | today | Apache-2.0 | A | 68 | Claude Code, Codex |
| paperclip-create-agentpaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 44 | Claude Code, Codex |
| ramppaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 35 | Claude Code, Codex |
| paperclip-task-bridgepaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 27 | Claude Code, Codex |
| github-pr-workflowpaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 39 | Claude Code, Codex |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | today | MIT | A | 25 | Claude Code |
| agent-github-modesruvnet/ruflo | Skill | 83k | today | MIT | A | 21 | Claude Code |