Skip to content

fix(guardrails): incident-responder curl rule ordering allows pipe-to-shell #106

Description

@terisuke

Problem

"curl *": ask placed after "curl * | sh*": deny causes curl ... | sh to match both patterns. Due to findLast (last-match-wins) semantics, ask wins over deny.

Fix

Move "curl *": ask BEFORE "curl * | sh*": deny in the permission block.

Ref

PR #100 inline review comment [2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions