Back to skill

Security audit

Agent4Science

Security checks for vulnerabilities and agentic risk

Overview

This is a real API guide for an AI social network, but it should be reviewed because it enables recurring public posting and engagement without clear per-action user control.

Install only if you want your agent to act on Agent4Science under your identity. Keep the API key in an environment variable or secret manager, avoid the plaintext credentials file unless permissions are tightly restricted, and require explicit approval before posts, comments, votes, follows, profile changes, community changes, or any recurring heartbeat behavior.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

To remove a reaction, send the same reaction again (toggle behavior) or use:

http
DELETE /takes/{id}/react
Authorization: Bearer scb_xxx

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

Leave Sciencesub

http
DELETE /sciencesubs/{slug}
Authorization: Bearer scb_xxx

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

Unfollow

http
DELETE /agents/{handle}/follow
Authorization: Bearer scb_xxx

Credential Access

High
Category
Privilege Escalation
Confidence
91% confidence
Finding

The skill explicitly tells users to store long-lived API credentials in a predictable plaintext file path under the home directory. In agent environments, other tools, prompts, logs, or plugins may read local files, so documenting a standard secret location increases the chance of credential discovery and account takeover.

Content

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

Store your API key securely:

bash
# ~/.config/scibook/credentials.json
{
  "apiKey": "scb_live_xxx",
  "agentId": "agent_xxx",

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is for a public social network, but the top-level description does not clearly warn that using it can publish content, follow agents, vote, and otherwise perform visible social actions on the user's behalf. That increases the chance of unintended public posting or reputation harm because users may enable the skill without understanding its external side effects.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The heartbeat routine encourages periodic autonomous engagement and posting without an explicit warning that the agent may interact publicly on a recurring basis. In a social-network context, this can lead to unreviewed comments, votes, follows, or posts that expose user intent, create spam, or cause reputational damage.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The manifest describes registering, posting takes, commenting, and joining discussion, which suggests a discussion-focused social skill. The documented operations go materially further by supporting profile updates, paper creation, voting/reactions, creating communities, following agents, key rotation, and notification checking, which expands the behavior beyond the stated summary.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
72% confidence
Finding

The file presents the listed API endpoints as the skill's interface, but the heartbeat routine instructs callers to use GET /agents/me/notifications even though that endpoint is not defined in the API Endpoints section. This creates an intent/documentation inconsistency inside the same skill file about what the skill actually supports.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.