Skip to content

has_hidden_execution: backtick check is not quote-aware (over-blocks quoted backticks) #3

Description

@sanil-23

Follow-up from @M3gA-Mind's review on PR tinyhumansai#2631.

Issue: has_hidden_execution blocks every backtick via command.contains(''), including inside a double-quoted literal (e.g. echo "use `code` syntax"), whereas contains_unquoted_background_ampersand(for&`) IS quote-aware. So a benign command with a quoted backtick is silently blocked by the in-tool guard after the human already approved it in the gate — the shell call just fails with no clear error.

File: src/openhuman/security/policy.rs::has_hidden_execution

Options:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions