acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and
$ npx -y skills add Mikaru0Mystic/sectinel --skill configuring-oauth2-authorization-flow --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/configuring-oauth2-authorization-flowContext preview
The summary Claude sees to decide when to auto-load this skill.
Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and
name: configuring-oauth2-authorization-flow description: Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token domain: cybersecurity subdomain: identity-access-management tags: - iam - identity - access-control - authentication - authorization - oauth2 - oidc - pkce version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - PR.AA-01 - PR.AA-02 - PR.AA-05 - PR.AA-06
Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant. This skill covers flow selection, PKCE implementation, token lifecycle management, scope design, and alignment with OAuth 2.1 security requirements.
1. **Authorization Code + PKCE**: Recommended for all client types (web, mobile, SPA). PKCE is mandatory in OAuth 2.1. 2. **Client Credentials**: Machine-to-machine authentication without user context. 3. **Device Authorization Grant (RFC 8628)**: For input-constrained devices (smart TVs, CLI tools). 4. **Refresh Token**: Long-lived token to obtain new access tokens without re-authentication.
PKCE (RFC 7636) prevents authorization code interception attacks: 1. Client generates random `code_verifier` (43-128 characters, unreserved URI chars) 2. Client computes `code_challenge = BASE64URL(SHA256(code_verifier))` 3. Authorization request includes `code_challenge` and `code_challenge_method=S256` 4. Token request includes original `code_verifier` 5. Server validates `SHA256(code_verifier)` matches stored `code_challenge`
1. Generate cryptographically random code_verifier (min 43 chars) 2. Compute code_challenge using S256 method 3. Redirect user to authorization endpoint with parameters:
4. User authenticates and consents 5. Authorization server redirects with authorization code 6. Exchange code + code_verifier for tokens at token endpoint 7. Validate state parameter matches original value
1. Register service client with client_id and client_secret 2. Request token: POST /oauth/token with grant_type=client_credentials 3. Include scope for required permissions 4. Store client_secret securely (vault, env vars, not code) 5. Implement certificate-based client authentication for higher assurance
| Control | NIST 800-53 | Description | |---------|-------------|-------------| | Access Control | AC-3 | Token-based access enforcement | | Authentication | IA-5 | Client credential management | | Session Management | SC-23 | Token lifecycle management | | Audit | AU-3 | Log all token issuance and revocation | | Cryptographic Protection | SC-13 | PKCE and token signing |
Open-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Repo: Mikaru0Mystic/sectinel
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative