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

CrowdStrike Alert - Detection of Perl Script Execution #1356

Closed
RevLaw opened this issue Nov 25, 2024 · 1 comment
Closed

CrowdStrike Alert - Detection of Perl Script Execution #1356

RevLaw opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working priority: high Higher priority
Milestone

Comments

@RevLaw
Copy link

RevLaw commented Nov 25, 2024

Describe the bug

The Perl execution command in the codebase is triggering a CrowdStrike security alert for potential "Persistence via Web Shell" behavior. The concerning code is located at:

return shell_exec("{$path} -e 'print $^V;'") ?: 'unknown version';

I don't know how to fix it, or if it's even possible. But can you check the code to see if you can make the execution safer?
Maybe you can replace it with another command?

Steps To Reproduce

  1. Install the Memories plugin in Nextcloud
  2. Run the plugin
  3. Observe CrowdStrike alert triggered by Perl execution

Platform

- OS: Docker - Oracle Linux
- Browser: Chrome
- Memories Version: 7.4.1
- Nextcloud Version: 31
- PHP Version: 8

Screenshots

image

Additional context

No response

@RevLaw RevLaw added the needs triage To be triaged label Nov 25, 2024
@pulsejet
Copy link
Owner

I don't know if that'll fix the warning, but these should definitely be using exec, not shell 👍🏻

@pulsejet pulsejet added bug Something isn't working priority: high Higher priority and removed needs triage To be triaged labels Nov 25, 2024
@pulsejet pulsejet added this to the 7.5 milestone Nov 25, 2024
@RevLaw RevLaw changed the title Antivirus Alarm CrowdStrike - Perl execution CrowdStrike Alert - Detection of Perl Script Execution Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high Higher priority
Projects
None yet
Development

No branches or pull requests

2 participants