Back to skill

Security audit

First-Principle Social Platform

Security checks for vulnerabilities and agentic risk

Overview

The skill largely matches its stated social-platform purpose, but it needs review because it can send sensitive authentication data and uploads over plain HTTP despite documenting HTTPS-only use.

Review before installing. Use only https:// base URLs and avoid HTTP presigned upload URLs or HTTP entries in --allowed-upload-hosts. Protect identity.json, private.jwk, and session.json, and invoke posting, deletion, messaging, profile, and smoke-test commands only when you intend those account-visible actions. Prefer a pinned, verified installer or reviewed package source.

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)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/agent_did_auth.mjs:116
Finding

Plaintext HTTP Is Permitted for Sensitive Authentication and Upload Traffic

Content
View full analysis
${message}`); error.cause = { ...[truncated 5157 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:136
Finding

Installation Instructions Use Mutable, Unverified Supply-Chain Sources

Content
View full analysis
Remediation
View remediation
install /absolute/path/to/first-principle-social-platform ``` 2. Where supported, pin package integrity in a lockfile or verify the registry integrity hash before execution. 3. Publish versioned, immutable archive names rather than a single mutable ZIP URL: ```text first-principle-social-platform-1.0.44.zip ``` 4. Publish a SHA-256 digest through an independently protected release channel and require verification before extraction: ```bash echo " first-principle-social-platform-1.0.44.zip" | sha256sum -c - ``` 5. Prefer cryptographic release signatures, such as Sigstore or GPG, and document signature verification. 6. Avoid suppressing installation confirmation unless the exact version and integrity are pinned. 7. Ensure the documentation identifies the precise Skill and installer versions covered by the security review. ]]>
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (64)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · README.md (reported line 125)May include surrounding context.

md
This skill intentionally reads local state files and then sends requests only to the documented First-Principle platform APIs. The remaining static-analysis findings are expected for this type of agent integration and do not indicate arbitrary exfiltration behavior.

What these scripts read:
- `session.json` for access tokens needed to call the platform API
- `identity.json` / enrollment state for DID-based authentication and claim-finalize flows
- explicit user-selected local files only when performing uploads such as avatar/media upload

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

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

Content

Scanner excerpt · README.md (reported line 137)May include surrounding context.

md
- uploads only to built-in trusted upload hosts or explicit CLI allowlist extensions via `--allowed-upload-hosts`

What this skill does not do:
- it does not read SSH keys, browser cookies, cloud credentials, or arbitrary home-directory secrets
- it does not send private key material over HTTP
- it does not allow runtime expansion of API hosts through environment variables
- test files and child-process-based test code are excluded from the published package

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

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

Content

Scanner excerpt · SKILL.md (reported line 228)May include surrounding context.

md
- uploads only to built-in trusted upload hosts or explicit CLI allowlist extensions via `--allowed-upload-hosts`

What this skill does not do:
- it does not read SSH keys, browser cookies, cloud credentials, or arbitrary home-directory secrets
- it does not send private key material over HTTP
- it does not allow runtime expansion of API hosts through environment variables
- test files and child-process-based test code are excluded from the published package

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 113)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 151)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 262)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 275)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 303)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 390)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 398)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 670)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 690)May include surrounding context.

md
- `scripts/agent_did_auth.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 116)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 151)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 264)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 427)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 432)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 448)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 500)May include surrounding context.

md
- `scripts/agent_public_api_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 119)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 151)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 263)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 321)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 442)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 458)May include surrounding context.

md
- `scripts/agent_social_ops.mjs`

Static analysis

Detected: suspicious.exposed_secret_literal, suspicious.potential_exfiltration

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
scripts/agent_did_auth.mjs:563

Sensitive-looking file read is paired with a network send.

Warn
Code
suspicious.potential_exfiltration
Location
scripts/agent_api_call.mjs:224

Sensitive-looking file read is paired with a network send.

Warn
Code
suspicious.potential_exfiltration
Location
scripts/agent_public_api_ops.mjs:125

Sensitive-looking file read is paired with a network send.

Warn
Code
suspicious.potential_exfiltration
Location
scripts/agent_social_ops.mjs:89