Back to skill

Security audit

Web Push Notifications (Go)

Security checks for vulnerabilities and agentic risk

Overview

This skill provides ordinary browser-notification development guidance, with examples that need correction before production use.

Suitable as development guidance. Before deployment, correct the library API examples, enforce endpoint validation and redirect/time limits for every send, protect signing keys and subscription records, and retain user-controlled subscription and unsubscribe actions. Quiet notifications require silent: true with vibrate omitted. Manual inspection addressed the scanner's material coverage gaps; the examples and external dependency were not executed or fully audited.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Cloud Metadata Access

High
Category
Server-Side Request Forgery
Confidence
90% confidence
Finding

Code accesses a cloud instance metadata endpoint (e.g. 169.254.169.254). A single request can return temporary IAM credentials, making this a high-value SSRF target for credential theft.

Content

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

md
}
    }
    if host == "localhost" || strings.HasSuffix(host, ".localhost") ||
            host == "169.254.169.254" {   // metadata облака
        return false
    }
    for _, allowed := range pushAllowlist {

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `references/go-api.md` — построчный разбор API `webpush-go`: типы,

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 · references/go-api.md (reported line 190)May include surrounding context.

Ключи — секрет. В проекте «Зелёный град» инфраструктура использует SOPS:

bash
sops secrets.yaml > /run/secrets/vapid.yaml

В коде:

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

The “silent notifications” documentation promises no vibration, but the implementation enables vibration by default.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

L188–L190 state that setting requireInteraction to false prevents vibration for nonurgent updates. However, L49–L51 configure requireInteraction and vibrate independently, with a default vibration pattern of [80, 40, 80]; on browsers supporting vibration, following this guidance does not produce the promised quiet notification.

Content

No source excerpt is available for this finding.