Back to skill

Security audit

BaseCred

Security checks for vulnerabilities and agentic risk

Overview

The skill does what it advertises, but it loads all values from a discovered .env file and then runs an unpinned third-party SDK with access to those secrets.

Review this before installing. Run it only in a workspace whose .env contains no unrelated secrets, or provide just the required API keys through a tightly controlled environment. Pin and review the basecred-sdk version before use, since the documented install currently resolves the latest package at install time.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:10
Finding

Unpinned Third-Party SDK Is Dynamically Executed with Workspace Privileges

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/query.mjs:34
Finding

Overbroad Ancestor .env Loading Exposes Unrelated Secrets to Third-Party Code

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/query.mjs (reported line 7)May include surrounding context.

js
*
 * Usage:  node scripts/query.mjs <0x-address>
 *
 * Env (loaded from <workspace>/.env or shell):
 *   TALENT_PROTOCOL_API_KEY
 *   NEYNAR_API_KEY
 *

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/query.mjs (reported line 69)May include surrounding context.

js
*
 * Usage:  node scripts/query.mjs <0x-address>
 *
 * Env (loaded from <workspace>/.env or shell):
 *   TALENT_PROTOCOL_API_KEY
 *   NEYNAR_API_KEY
 *

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/query.mjs (reported line 41)May include surrounding context.

js
function loadDotEnv() {
  let dir = process.cwd();
  for (let i = 0; i < 5; i++) {
    const candidate = path.join(dir, '.env');
    if (fs.existsSync(candidate)) {
      for (const line of fs.readFileSync(candidate, 'utf8').trim().split('\n')) {
        const eq = line.indexOf('=');

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill instructs the agent to rely on workspace environment variables and execute a local Node.js script, but it does not declare any explicit tool scope or permissions boundary. That mismatch can cause an agent runtime to access secrets from .env or broader workspace resources without clear policy controls, increasing the risk of unintended secret exposure or overbroad execution.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.