Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand unsafe paste detection to cover more common cases #799

Closed
teamcons opened this issue Nov 4, 2024 · 0 comments
Closed

Expand unsafe paste detection to cover more common cases #799

teamcons opened this issue Nov 4, 2024 · 0 comments

Comments

@teamcons
Copy link
Contributor

teamcons commented Nov 4, 2024

Problem

Unsafe paste concerns at the time sudo, and its more modern variant doas
However it does not cover run0, the systemD variant

It also misses common unsafe paste

Proposal

Future-proof the feature :
Include more than doas and sudo :
-"run0"
-"su"
-"pkexec"

(Do we want this ?) Include "download and run script" commands :
-Include "wget -[\S]O.* |" (anything wget -O piped to something)
-Include "curl .* |" (Anything curl piped to something)
-Rm ?
After the pipe could be matching common interpreters (sh|bash|python|fish|zsh|dash). But theres a LOT of those...
(Im not sure of my regex fu...)

Prior Art (Optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant