Skip to content

Commit

Permalink
Fix: Rule triggers irrsepective of command successful or not
Browse files Browse the repository at this point in the history
Signed-off-by: GLVS Kiriti <[email protected]>
  • Loading branch information
GLVSKiriti authored and poiana committed Apr 3, 2024
1 parent 7770275 commit 34fb4c3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func DetectCryptoMinersUsingTheStratumProtocol(h events.Helper) error {
// NOTE: Crypto mining commands typically may resemble the following format,
// where 'minersoftware' is an executable:
// minersoftware -o stratum+tcp://example.com:3333 -u username -p password
// However, for testing purposes, we're using 'find' as a placeholder.
cmd := exec.Command("find", "-o stratum+tcp", "-u user", "-p pass")
return cmd.Run()
// However, for testing purposes, we're using 'ls' as a placeholder.
cmd := exec.Command("ls", "-o stratum+tcp", "-u user", "-p pass")
cmd.Run()
return nil
}

0 comments on commit 34fb4c3

Please sign in to comment.