-
Notifications
You must be signed in to change notification settings - Fork 1k
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
False positive "Trojaned version of file '/bin/diff' detected" on Archlinux #2020
Comments
same for Fedora35. |
Any updates on this issue? The bug still exists now. |
/bin/diff returns /dev/full on fedora, so remove the /dev check
Please test PR #2062 |
Just experienced this issue on several Ubuntu hosts of mine: | manager.name | wazuh |
I agree with the others, we are experiencing this: Wazuh Alert: 'Host-based anomaly detection event (rootcheck).' DETAILS |
Same problem. { |
Too many notifications of this |
this issus still continues as below Received From: siem1->rootcheck Trojaned version of file '/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). |
I think the issue may be due to a reverence to
I made a change in -diff !bash|^/bin/sh|file\.h|proc\.h|/dev/[^n]|^/bin/.*sh!
+diff !bash|^/bin/sh|file\.h|proc\.h|/dev/[^nf]|^/bin/.*sh! |
Any update on this? |
This is still happening on Linux Mint 21 "timestamp":"2023-03-19T14:54:44.046+0000","rule":{"level":7,"description":"Host-based anomaly detection event (rootcheck).","id":"510","firedtimes":2,"mail":true,"groups":["ossec","rootcheck"],"gdpr":["IV_35.7.d"]},"agent":{"id":"027","name":"Mint21","ip":"192.168.1.19"},"manager":{"name":"secon-server-wazuh-manager"},"id":"1679237684.3782962","full_log":"Trojaned version of file '/usr/bin/diff' detected. Signature used: 'bash|^/bin/sh|file\.h|proc\.h|/dev/[^n]|^/bin/.*sh' (Generic).","decoder":{"name":"rootcheck"},"data":{"title":"Trojaned version of file detected.","file":"/usr/bin/diff"},"location":"rootcheck"} |
I never got any responses to the PR, but I've merged it. Hopefully it helps. |
Still happening to macOS as well |
Happening on Debian 11 with Wazuh v4.3.10 |
Wazuh 4.4.0 and still happening .... |
Same here |
can confirm same, latest ver. of wazuh |
Same, Wazuh 4.4.1 and Ubuntu Server minimal 22.04 (all updates). Any News? |
I have this issue with |
Wanted to leave an update. Files Indicated: Signature used: Going to try fstrube edit to rootkit_trojans.txt |
Receiving the same. wazuh-manager version 4.4.5 running on an Ubuntu 22.04.2 LTS virtual machine. Trojaned version of file '/usr/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). |
Receiving the same. |
I think nobody work on this ... |
Getting the same notification on Debian 12, wazuh 4.5.1 |
In lieu of a proper fix, this will silence the alert from Wazuh on Debian/Ubuntu:
Add something like: <group name="rootcheck,ossec,">
<rule id="510" level="0" overwrite="yes">
<match>/bin/diff</match>
<description>Ignore 510 rootcheck on /bin/diff</description>
</rule>
</group> Test the changes:
If it looks good restart:
|
Hi @33b5e5 Thanks for the workaround. But it disable the check on /bin/diff ? Should be great if it would work as exepected :) Thanks again that said |
Is there any news about this? |
same on Ubuntu 23 |
I have the same thing on U22 with Wazuh v4.5.2 |
Same issue with Agent v4.5.2 and Debian 12 |
Seeing this on several of my linux machines. |
Same issue active - ubuntu 23.04 |
Seeing this on my Proxmox Hosts (based on Debian 12 Bookworm) |
Same issue on Ubuntu 22.04 (at the date). |
Also seeing this |
Still exists, please fix this ugg. |
2 years later this bug is still unfixed! I'm getting the same alert in Debian Bookworm and Ossec v3.7.0: OSSEC HIDS Notification. Received From: debianvaio->rootcheck Trojaned version of file '/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). --END OF NOTIFICATION Looking at the bright size, it is good to know this is a false positive. |
This has been fixed in tree for a while. I'm kind of regretting it though, it's easy enough to fix with an ignore rule. Right now if |
But this "fix" is not really a "fix" because... What if 'diff' ever becomes legitimately infected? People install security software because they have legitimate security concerns. A false positive detection is a bug in the software and that's what should be fixed. |
How do you expect to check for the presence of /dev but not alert on the
presence of /dev?
…On Thu, Nov 2, 2023 at 6:36 PM alexeiol ***@***.***> wrote:
This has been fixed in tree for a while. I'm kind of regretting it though,
it's easy enough to fix with an ignore rule. Right now if diff is
trojaned and has a reference to /dev on a non-linux system it won't be
caught. Here's the current definition though: diff
!bash|^/bin/sh|file\.h|proc\.h|^/bin/.*sh!
But this "fix" is not really a "fix" because... What if 'diff' ever
becomes legitimately infected? People install security software because
they have legitimate security concerns. A false positive detection is a bug
in the software and that's what should be fixed.
—
Reply to this email directly, view it on GitHub
<#2020 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGAZNNKKJITIUJT5EWU4ZTYCQN6VAVCNFSM5GTMCKYKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZGE3DKNRSG44A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
same here, ubuntu server 22.04, wazuh 4.5.4 |
Same problem: Wazuh v 4.6.0 |
Debian 12 , ossec-hids-agent_3.7.0-29672bookworm_amd64.deb - same problem. |
Same problem: AWS AL2023 |
Same on Ubuntu 22.04 hosts, v4.6.0
|
Same on Ubuntu 22.04, Wazuh v4.5.3 Trojaned version of file '/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). |
Bump ... Still issue! |
same on current debian 12 |
Bump. still same issue on Ubuntu 22.04 with Wazuh 4.6 |
Trojaned version of file '/usr/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). This is event is on my host wazuh server running Ubuntu 22.04.3 LTS |
This is also happening on Debian Bookworm. I've checked with other installations and the hash is correct.
Relevant Wazuh/OSSEC log:
I'm currently using Wazuh 4.7.0. |
same here 4.7.0. with ubuntu 22.04 Trojaned version of file '/bin/diff' detected. Signature used: 'bash|^/bin/sh|file.h|proc.h|/dev/[^n]|^/bin/.*sh' (Generic). |
This is corrected in the main branch, to update you can use:
|
Hey Ossec Team,
with the latest version diffutils 3.8-1 installed ossec reports a trojaned version of a few files.
I opened an issue at the archlinux bug tracker here:
https://bugs.archlinux.org/task/72519#comment203202
When testing the files against virustotal database nothing suspicious is reported and the checksum seems fine.
Changing the diff line in rootkit_trojans.txt to
diff !bash|^/bin/sh|file\.h|proc\.h|^/bin/.*sh!
solves the reporting.I assume it is a false positive and after confirming the rootkit_trojans.txt should be changed.
Thanks in advance
The text was updated successfully, but these errors were encountered: