T09 · Insecure Skill Coding Practices
- Location
SKILL.md:58- Finding
Unsafe Extraction and Handling of LinkedIn Session Cookie
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 58-64
Vulnerability Type: Exposure and insecure handling of reusable session credentials
Risk Level: MediumVulnerable Code:
markdown ## Session Cookie Method (Advanced) If browser relay isn't available, extract the `li_at` cookie from browser: 1. Open LinkedIn in browser, log in 2. DevTools → Application → Cookies → linkedin.com 3. Copy `li_at` value 4. Store securely for API requestsTechnical Analysis
The skill instructs users to manually extract and copy LinkedIn's
li_atsession cookie. This cookie is a reusable authentication credential capable of representing an authenticated LinkedIn session. Moving it outside the browser's managed cookie storage expands its exposure to the clipboard, terminal history, agent context, logs, request traces, plaintext files, and other processes.The phrase “Store securely” does not define an enforceable security mechanism. The skill provides no requirement for OS-backed secret storage, access controls, encryption, credential lifetime limits, log redaction, secure deletion, or session revocation. It also does not constrain the destinations to which the credential may be sent when making API requests.
No evidence shows that the skill automatically steals or exfiltrates the cookie. The vulnerability is the unsafe credential-handling procedure itself.
Attack Path
- A user follows the skill's instructions and extracts the
li_atcookie through browser developer tools. - The credential is copied to the system clipboard or placed in unspecified storage for subsequent API requests.
- The cookie is unintentionally retained in clipboard history, logs, agent conversation records, command history, a plaintext file, or another insufficiently protected location.
- A malicious local process, unauthorized user, compromised tool, or party with access to those records obtains the cookie.
- The att ...[truncated 760 chars]
- A user follows the skill's instructions and extracts the
- Remediation
View remediation
Remediation Suggestions
- Remove the session-cookie extraction method and require the authenticated browser relay or isolated browser profile, allowing the browser to retain control of protected cookies.
- If direct authenticated requests are essential, use an officially supported OAuth or LinkedIn API authorization flow instead of extracting browser session cookies.
- Never place session cookies in prompts, command-line arguments, logs, source files, configuration files, or plaintext temporary files.
- Store unavoidable credentials in an OS-backed credential manager or dedicated secret-management system with encryption at rest and access restricted to the minimum required process.
- Implement automatic redaction for cookies and authorization headers in browser traces, HTTP diagnostics, errors, and audit logs.
- Restrict requests to an explicit allowlist of official LinkedIn HTTPS endpoints and prevent credentials from being attached to redirects or third-party origins.
- Minimize credential retention, securely delete temporary copies, clear clipboard contents where practical, and document how users can terminate active LinkedIn sessions if exposure is suspected.
- Add explicit warnings that
li_atis a sensitive authentication credential and must never be disclosed to an agent, another user, or an untrusted tool.
