Back to skill

Security audit

antigravity-bridge

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because its Markdown sync may copy sensitive content despite assurances that it excludes secrets; this is a security weakness, not evidence of malicious intent.

Review the source directories and Markdown files before installing, especially if they may contain credentials or confidential notes. The reported sync does not inspect file contents before copying, and some referenced paths were unavailable to the scanner, so its evidence is incomplete.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (14)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The promise that secrets and credentials are never copied is not supported by Markdown-extension filtering: documentation can contain credentials, private notes, or arbitrary content. Automatic indexing expands access to such content; however, arbitrary knowledge directories are an explicitly documented feature, and this documentation alone does not establish the finding's additional path-traversal claims.

Content

No source excerpt is available for this finding.

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

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

be synced, without making changes --verbose Show rsync output and detailed progress --help Show this help

text

Examples:

```bash
# Sync everything
sync.sh

# Sync one project only
sync.sh --project acme-platform

# Preview without touching files
sync.sh --dry-run --verbose

# Use a custom config
sync.sh --config ~/my-bridge.yaml

Cron Integration

Add to crontab (crontab -e) for automatic syncing:

cron
# Antigravity Bridge — hourly during business hours (Mon-Fri, 08:00-18:00)
0 8-18 * * 1-5 ~/.openclaw/workspace/skills/antigravity-bridge/sync.sh >> ~/.openclaw/logs/antigravity-bridge.log 2>&1

# Nightly full sync (all days, 02:00)
0 2 * * * ~/.openclaw/workspace/skills/antigravity-bridge/sync.sh --verbose >> ~/.openclaw/logs/antigravity-bridge.log 2>&1

Create the log directory first:

bash
mkdir -p ~/.openclaw/logs

Troubleshooting

yq: command not found Install yq: brew install yq (macOS) or see https://git

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

yq — YAML parser (required)

brew install yq # macOS

or: sudo apt install yq # Ubuntu/Debian

or: snap install yq # Ubuntu snap

yq --version

text

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · setup.md (reported line 18)May include surrounding context.

rsync version 2.6.9 protocol version 29

text

If missing: `brew install rsync` (macOS) or `sudo apt install rsync`

### 2. yq (YAML parser — required)

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

Cron Integration

Add to crontab (crontab -e) for automatic syncing:

cron
# Antigravity Bridge — hourly during business hours (Mon-Fri, 08:00-18:00)

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · setup.md (reported line 164)May include surrounding context.

Step 7: Set up cron (optional but recommended)

For continuous sync, add to your crontab (crontab -e):

cron
# Antigravity Bridge — hourly during business hours (Mon-Fri, 08:00-18:00)

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

Create the log directory first:

bash
mkdir -p ~/.openclaw/logs

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · setup.md (reported line 177)May include surrounding context.

Create the log directory:

bash
mkdir -p ~/.openclaw/logs

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
Copy the template: `cp config-template.yaml ~/.openclaw/workspace/antigravity-bridge.yaml`

**`rsync: command not found`**
Install rsync: `brew install rsync` (macOS) or `sudo apt install rsync`

**No results from memory_search**
- Check that `memorySearch.extraPaths` includes the destination folder

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · setup.md (reported line 34)May include surrounding context.

md
brew install yq

# Ubuntu/Debian
sudo apt install yq

# Ubuntu snap
snap install yq

The skill omits a warning that Markdown files can contain sensitive data and incorrectly guarantees that extension filtering prevents secrets from being copied.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The security section incorrectly equates a file-extension restriction with exclusion of sensitive information. Users relying on that assurance may copy sensitive Markdown into an automatically searchable agent index.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · sync.sh (reported line 94)May include surrounding context.

sh
echo "" >&2
    echo "yq is required for YAML config parsing. Install it:" >&2
    echo "  macOS:        brew install yq" >&2
    echo "  Ubuntu/Debian: sudo apt install yq" >&2
    echo "  Ubuntu snap:  snap install yq" >&2
    echo "  Manual:       https://github.com/mikefarah/yq/releases" >&2
    exit 1

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · sync.sh (reported line 102)May include surrounding context.

sh
if ! command -v rsync &>/dev/null; then
    echo -e "${RED}Error: rsync not found.${RESET}" >&2
    echo "Install rsync: brew install rsync (macOS) or sudo apt install rsync" >&2
    exit 1
  fi
}

Markdown-only filtering does not enforce the manifest's promise that secrets and credentials are never synced.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The rsync filters admit files based on their .md names without inspecting their contents, so credentials or confidential information inside Markdown are copied unchanged. In this bridge's indexing workflow, such information can become retrievable through agent memory; the shown code does not itself demonstrate external exfiltration.

Content

No source excerpt is available for this finding.