Back to skill

Security audit

Google Health

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign with medium confidence: the reported credential handling appears purpose-related, while a confirmed response-truncation issue could affect health data completeness.

The verdict is benign, not risk-free. Before installing, consider whether silently incomplete health data would affect your use. The scan inspected all listed components, but its overall analysis was partial because some referenced paths were not present in the bundle.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

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 · internal/auth/tokencache.go (reported line 223)May include surrounding context.

go
// persistingSource wraps a refreshing TokenSource and re-saves the token to disk
// whenever .Token() yields a newer one (an access-token rotation after a
// refresh). x/oauth2 handles refresh-token rotation internally; we only need to
// persist the result so the on-disk access token stays fresh between runs
// (GOAL.md §8 — ghealth doesn't do this; we should).
type persistingSource struct {
	base               oauth2.TokenSource

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 · internal/auth/tokencache.go (reported line 248)May include surrounding context.

go
}

// changed reports whether tok differs from the last persisted token in a way
// worth writing (a new access token or a new expiry).
func (p *persistingSource) changed(tok *oauth2.Token) bool {
	if p.last == nil {
		return true

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 · internal/cli/auth.go (reported line 126)May include surrounding context.

go
report := authStatusReport{TokenPath: cfg.TokenCache}
			if tok != nil {
				report.Present = true
				report.Valid = tok.Valid() // non-empty access token AND not expired.
				if !tok.Expiry.IsZero() {
					report.Expiry = tok.Expiry.UTC().Format(time.RFC3339)
				}

RawGet silently truncates successful responses despite the promise to return every record the API sends.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

RawGet reads through a 32 MiB LimitReader without checking whether additional bytes remain, then returns success for a successful HTTP status. Oversized responses therefore become silently truncated output, undermining the completeness contract for sensitive health data; downstream JSON validation may detect corruption, but this function does not.

Content

No source excerpt is available for this finding.

Permission 'env: the five GOOGLE_HEALTH_* variables listed under envVars' is declared but no corresponding code capability (env) was detected.

Low
Category
MCP Least Privilege
Confidence
65% confidence
Finding

Declared permissions with no matching code capability may indicate removed functionality or pre-staging for future abuse.

Content

No source excerpt is available for this finding.

Permission 'file_read: config.json, the OAuth token cache, and a legacy token cache at the older <user config dir> path when migrating it' is declared but no corresponding code capability (file_read) was detected.

Low
Category
MCP Least Privilege
Confidence
65% confidence
Finding

Declared permissions with no matching code capability may indicate removed functionality or pre-staging for future abuse.

Content

No source excerpt is available for this finding.