Back to skill

Security audit

financial-categorizer

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports a high confidence risk that removing a manual category match can also delete user-created transfer links, potentially affecting financial reports.

Review the reported risk to user-created transfer links and the confirmation bypasses before installing, especially if you rely on those links or will run commands that modify financial records. Skillspector inspected 14 of 15 components and partially inspected one; its tool-misuse analysis was degraded, so the scan evidence is incomplete. The verdict is suspicious, not a claim of malicious intent.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (19)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · cli.py (reported line 405)May include surrounding context.

python
row = cur.fetchone()
if not row:
print(f"Rule {args.id} not found")
return
rule = {
"id": row[0],
"category_id": row[1],

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · cli.py (reported line 1393)May include surrounding context.

python
row = cur.fetchone()
if not row:
print(f"Transfer rule {args.id} not found")
return
rule_id, pattern, match_type = row
print("Transfer Rule Details:")
print(f" ID: {rule_id}")

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 39)May include surrounding context.

python
if yes_flag:
        return True
    if not sys.stdin.isatty():
        print("Error: Interactive confirmation is not available. Use --yes or -y to bypass confirmation.", file=sys.stderr)
        sys.exit(1)
    try:
        response = input(f"{prompt_message} [y/N]: ").strip().lower()

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2048)May include surrounding context.

python
# delete-account
    p_del_acct = subparsers.add_parser("delete-account", help="Delete an account")
    p_del_acct.add_argument("id", type=int, help="Account ID")
    p_del_acct.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_del_acct.set_defaults(func=cmd_delete_account)

    # categories

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2083)May include surrounding context.

python
p_del_cat.add_argument("id", type=int, help="Category ID")
    p_del_cat.add_argument("--reassign", type=int, help="Reassign children/rules/matches to this category")
    p_del_cat.add_argument("--force", action="store_true", help="Force deletion without reassign (children still require --reassign)")
    p_del_cat.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_del_cat.set_defaults(func=cmd_delete_category)

    # rules

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2106)May include surrounding context.

python
# remove-rule
    p_rem_rule = subparsers.add_parser("remove-rule", help="Remove a match rule")
    p_rem_rule.add_argument("id", type=int, help="Rule ID")
    p_rem_rule.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_rem_rule.set_defaults(func=cmd_remove_rule)

    # preview

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2225)May include surrounding context.

python
# db-cleanup
    p_cleanup = subparsers.add_parser("db-cleanup", help="Clean up orphaned database records")
    p_cleanup.add_argument("--dry-run", action="store_true", help="Show orphaned records without deleting them")
    p_cleanup.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_cleanup.set_defaults(func=cmd_cleanup)

    # cleanup-pending

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2260)May include surrounding context.

python
# unlink
    p_unlink = subparsers.add_parser("unlink", help="Remove a transaction link")
    p_unlink.add_argument("id", type=int, help="Link ID")
    p_unlink.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_unlink.set_defaults(func=cmd_unlink)

    # links

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2295)May include surrounding context.

python
# remove-transfer-rule
    p_rtr = subparsers.add_parser("remove-transfer-rule", help="Remove a transfer detection rule")
    p_rtr.add_argument("id", type=int, help="Rule ID")
    p_rtr.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_rtr.set_defaults(func=cmd_remove_transfer_rule)

    # stats-compare

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2395)May include surrounding context.

python
p_rem_rec.add_argument("--hard", action="store_true",
                           help="Delete configuration completely from the DB (otherwise soft-closes/cancels)")
    p_rem_rec.add_argument("--date", help="Cancellation date (YYYY-MM-DD, defaults to date of last matched transaction)")
    p_rem_rec.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_rem_rec.set_defaults(func=cmd_remove_recurring)

    # discover-recurring

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · cli.py (reported line 2172)May include surrounding context.

python
p_stats_cat = subparsers.add_parser("stats-category", help="Total for a category (inc. children)")
    p_stats_cat.add_argument("name", help="Category name")
    p_stats_cat.add_argument("--month", help="Filter to YYYY-MM")
    p_stats_cat.add_argument("--from", dest="from_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="Start date (YYYY-MM-DD)")
    p_stats_cat.add_argument("--to", dest="to_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="End date (YYYY-MM-DD)")
    p_stats_cat.add_argument("--period-type", choices=["calendar", "salary", "default"], default="default",
                                 help="Period type: calendar, salary, or default (dynamically determined by active salary config)")

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · cli.py (reported line 2173)May include surrounding context.

python
p_stats_cat.add_argument("name", help="Category name")
    p_stats_cat.add_argument("--month", help="Filter to YYYY-MM")
    p_stats_cat.add_argument("--from", dest="from_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="Start date (YYYY-MM-DD)")
    p_stats_cat.add_argument("--to", dest="to_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="End date (YYYY-MM-DD)")
    p_stats_cat.add_argument("--period-type", choices=["calendar", "salary", "default"], default="default",
                                 help="Period type: calendar, salary, or default (dynamically determined by active salary config)")
    g_stats_cat = p_stats_cat.add_mutually_exclusive_group()

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · cli.py (reported line 2185)May include surrounding context.

python
# stats trend
    p_stats_trend = subparsers.add_parser("stats-trend", help="Monthly breakdown for a category")
    p_stats_trend.add_argument("name", help="Category name")
    p_stats_trend.add_argument("--from", dest="from_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="Start date (YYYY-MM-DD)")
    p_stats_trend.add_argument("--to", dest="to_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="End date (YYYY-MM-DD)")
    p_stats_trend.add_argument("--period-type", choices=["calendar", "salary", "default"], default="default",
                                 help="Period type: calendar, salary, or default (dynamically determined by active salary config)")

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · cli.py (reported line 2186)May include surrounding context.

python
p_stats_trend = subparsers.add_parser("stats-trend", help="Monthly breakdown for a category")
    p_stats_trend.add_argument("name", help="Category name")
    p_stats_trend.add_argument("--from", dest="from_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="Start date (YYYY-MM-DD)")
    p_stats_trend.add_argument("--to", dest="to_date", type=lambda s: __import__('datetime').date.fromisoformat(s), help="End date (YYYY-MM-DD)")
    p_stats_trend.add_argument("--period-type", choices=["calendar", "salary", "default"], default="default",
                                 help="Period type: calendar, salary, or default (dynamically determined by active salary config)")
    g_stats_trend = p_stats_trend.add_mutually_exclusive_group()

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2234)May include surrounding context.

python
help="Delete ghost pending reservations whose settled counterpart already exists",
    )
    p_cleanup_pending.add_argument("--dry-run", action="store_true", help="Show ghost pending transactions without deleting them")
    p_cleanup_pending.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_cleanup_pending.add_argument(
        "--force-id", action="append", type=int, default=None, metavar="ID",
        help="Delete a specific pending transaction by id (repeatable), overriding match confidence",

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2278)May include surrounding context.

python
p_auto_link = subparsers.add_parser("auto-link", help="Auto-detect internal transfers using transfer rules")
    p_auto_link.add_argument("--days", type=int, default=3, help="Max days apart (default: 3)")
    p_auto_link.add_argument("--dry-run", action="store_true", help="Show what would be linked without making changes")
    p_auto_link.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt")
    p_auto_link.set_defaults(func=cmd_auto_link)

    # transfer-rules

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · cli.py (reported line 2402)May include surrounding context.

python
p_disc_rec = subparsers.add_parser("discover-recurring",
                                       help="Auto-discover candidates and auto-close dead configurations")
    p_disc_rec.add_argument("--dry-run", action="store_true", help="Preview candidates without writing them to DB")
    p_disc_rec.add_argument("--yes", "-y", action="store_true", help="Bypass confirmation prompt (required to save and auto-link in non-interactive mode)")
    p_disc_rec.set_defaults(func=cmd_discover_recurring)

    # stats-recurring

Removing a manual match deletes all external-transfer links for the transaction, not just auto-created links as documented.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

Removing a manual category match deletes every external-transfer link originating from that transaction, without distinguishing automatically generated links from user-created links. This exceeds the documented cleanup scope and can destroy intentional financial relationships, changing adjusted amounts and downstream reports when recalculation runs.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · financial_categorizer/recurring.py (reported line 688)May include surrounding context.

python
cand["id"] = new_id
                saved_configs.append(cand)

            # Automatically run matching and auto-closing of dead existing active configurations
            self.link_transactions(dry_run=False, auto_close=True)
        else:
            saved_configs = discovered