
Authenticated session acquisition
Obtains a logged-in session through MFA/OTP for later authenticated security testing
Authenticated session acquisition is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 641
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Authenticated session acquisition
This skill is built for security testing engagements where the login flow of an in-scope target is protected by SMS or TOTP multi-factor authentication. Its purpose is to produce one legitimate authenticated session and save it as reusable files: a Playwright storage state holding cookies and localStorage, and a raw bearer token with its expiry time. Other testing steps can then reach the post-login parts of an application that would otherwise be out of reach.
The skill offers three ways to get past the second factor, depending on what the client provides: generating the current code from a shared TOTP seed with a bundled stdlib Python script, pausing so an operator can enter a one-time code at run time, or pausing the browser session for a human to finish the challenge and then resuming. It includes per-provider recipes for Auth0, Okta, Amazon Cognito and Descope, and a verification step that confirms an authenticated request returns an authorized response before the session is handed on.
If no test account or seed is available, the skill directs the agent to file a client input request, mark the affected coverage as deferred, and avoid reporting that surface as tested. Secrets are referenced by file path rather than written into prompts or notes.
When your agent uses it
Acquire an authenticated session THROUGH MFA/OTP on an in-scope target and emit a reusable session artifact (Playwright storageState + Bearer) so executors can test the post-auth attack surface. Use when the highest-value authenticated classes (BOLA/IDOR/mass-assignment/injection on the real data APIs) are blocked because login is gated by SMS-OTP or TOTP MFA. Distinct from the authentication skill (which ATTACKS auth); this one legitimately authenticates and hands the session to the rest of the engagement.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (11 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/authenticated-session-acquisition to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/authenticated-session-acquisition &&
cp -R "$tmp/skills/authenticated-session-acquisition" ~/.claude/skills/authenticated-session-acquisition &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/authenticated-session-acquisition inside it instead.
Copy the skill folder to ~/.agents/skills/authenticated-session-acquisition to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/authenticated-session-acquisition &&
cp -R "$tmp/skills/authenticated-session-acquisition" ~/.agents/skills/authenticated-session-acquisition &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/authenticated-session-acquisition inside it instead.
Copy the skill folder to ~/.cursor/skills/authenticated-session-acquisition to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/authenticated-session-acquisition &&
cp -R "$tmp/skills/authenticated-session-acquisition" ~/.cursor/skills/authenticated-session-acquisition &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/authenticated-session-acquisition inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/authenticated-session-acquisitionOr copy the folder to ~/.gemini/skills/authenticated-session-acquisition yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/authenticated-session-acquisition:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/authenticated-session-acquisition &&
cp -R "$tmp/skills/authenticated-session-acquisition" ~/.copilot/skills/authenticated-session-acquisition &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/authenticated-session-acquisition inside it instead.
Get the folder:
git clone --depth 1 https://github.com/transilienceai/communitytools.gitThen copy communitytools/skills/authenticated-session-acquisition into your agent's skills folder as authenticated-session-acquisition. Agents that support SKILL.md read one folder per skill.
What it does
- Session artifact export
- Writes Playwright storage state and a bearer token file to the engagement output directory.
- TOTP code generation
- Produces current RFC 6238 codes from a shared Base32 seed using a bundled script.
- Operator-assisted OTP entry
- Pauses at the one-time code prompt so an operator can supply the code during the run.
- Identity provider recipes
- Step-by-step acquisition flows for Auth0, Okta, Amazon Cognito and Descope.
- Session verification step
- Checks that a minimal authenticated request is accepted rather than rejected or redirected.
- Honest deferral path
- Records untestable post-login areas with a client input request instead of marking them complete.
Good for
- Log into a test tenant behind SMS or TOTP MFA and save the session for API testing
- Generate a current TOTP code from a client-shared seed for a test account
- Export a reusable bearer token and its expiry time for direct API calls
- Pause a login flow so an operator can enter a one-time code, then continue
- Document which post-login areas could not be tested because no test account was available
Authenticated session acquisition FAQ
When does Authenticated session acquisition trigger?
It is meant for cases where the highest-value authenticated checks are blocked because login is gated by SMS OTP or TOTP MFA, and it is distinct from the authentication skill, which attacks auth.
What files does Authenticated session acquisition produce?
It produces a Playwright storageState.json with cookies and localStorage, and a bearer.txt containing the raw access or ID token and its expires_at value.
Does Authenticated session acquisition try to bypass MFA?
No. The skill states it does not brute-force or bypass the OTP challenge; it either uses a client-provided seed, an operator-supplied code, or a human-completed challenge.
What does the TOTP script need?
The bundled tools/totp_now.py is a stdlib RFC-6238 generator that takes a Base32 seed as its argument.
How do I install Authenticated session acquisition in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/authenticated-session-acquisition to use it in all your projects, or to .claude/skills/authenticated-session-acquisition in one project.
Does Authenticated session acquisition run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Authenticated session acquisition?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Authenticated session acquisition?
The closest alternatives to Authenticated session acquisition are Authentication, API security, API security auth pattern, Ad methodology and Mobile security.
Where this comes from
- Description: from the skill's own SKILL.md.
More from transilienceai/communitytools

Guides an agent through authorized OWASP LLM Top 10 security tests of AI applications
- Open source
- 641 GitHub stars
- Security

Guides an agent through security testing of REST, GraphQL, WebSocket and LLM APIs
- Open source
- 641 GitHub stars
- Security

Chains confirmed single-asset findings into multi-hop attack paths across an organization
- Open source
- 641 GitHub stars
- Security

Guides an agent through authentication security testing: JWT, OAuth, 2FA, SAML and CAPTCHA
- Open source
- 641 GitHub stars
- Security

Guides an agent through Solidity smart contract security testing and blockchain CTF
- Open source
- 641 GitHub stars
- Security

Guides an agent through testing web apps for XSS, CSRF, CORS, clickjacking and more
- Open source
- 641 GitHub stars
- Security





