Re:Detecting the use of “curl | bash” server side
by jameshart on Tuesday December 27, 2022 @09:47AM
(#34149096)
This approach seems much simpler and more reliable than detecting the pipe buffer is full.
Re:Detecting the use of “curl | bash” server side
by catalypso on Tuesday December 27, 2022 @10:27AM
(#34149445)
That would indeed be more precise, but it would be harder to obfuscate.
If I simply curl the script (without piping to bash), I'd be less suspicious if I saw a sleep than I would be if I saw a callback to a server.
When the callback is received, continue with malicious payload, otherwise after some timeout, send a benign script..