Skip to content

SG-003 flags benign text such as "escalate the ticket" as CRITICAL #8

Closed

Description

@obielin

Problem

SG-003 (Privilege Escalation, CRITICAL) flags ordinary text. One pattern matches the bare words escalat, root access, admin access and superuser anywhere:

src/skillguard/rules.py:117

r"(?:escalat|privesc|root\s+access|admin\s+access|superuser)",

Because SG-003 is CRITICAL, one match makes the whole skill CRITICAL and fails CI.

Reproduce

skillguard check "If the user is upset, escalate the ticket to a human agent."
skillguard check "Ask the admin access team for a review."

Both report SG-003 and risk level CRITICAL.

What done looks like

  • The two sentences above no longer trigger SG-003.
  • Real privilege escalation text still triggers it. All existing TestPrivEscRule tests still pass.
  • New true-negative tests for the benign sentences, and at least one true-positive test for any pattern you change (see the rule requirements in the README's Contributing section).

Hints

Options include narrowing the pattern to escalation in a security context (for example "privilege escalation", "escalate privileges", "gain root access"), or moving the broad words to a separate lower-severity rule. Please explain the trade-off you chose in the PR.

Activity

  1. added
    bug
    help wanted
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions