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

Suppress ossec alerts for temporary PID files created by GPG #7159

Open
rocodes opened this issue May 7, 2024 · 0 comments
Open

Suppress ossec alerts for temporary PID files created by GPG #7159

rocodes opened this issue May 7, 2024 · 0 comments

Comments

@rocodes
Copy link
Contributor

rocodes commented May 7, 2024

Description

[Thanks @legoktm for investigation]

GPG creates temporary files in /var/lib/securedrop/keys/ of the format /var/lib/securedrop/keys/.#xxxx.app.yyyy. This results in false positive ossec alerts, as below. We mostly don't encounter this anymore since we've moved to sq, except for in some cases (source deletion).

Steps to Reproduce

loaddata.py --gpg and observe temporary files in that directory, then delete sources

Expected Behavior

No OSSEC alert

Actual Behavior

OSSEC HIDS Notification.
$date

Received From: (app) $app_ip->syscheck
Rule: 553 fired (level 7) -> "File deleted. Unable to retrieve checksum."
Portion of the log(s):

File '/var/lib/securedrop/keys/.#[redacted].app.[redacted]' was deleted. Unable to retrieve checksum.

--END OF NOTIFICATION

Comments

These alerts can be suppressed (if we feel okay suppressing alerts in /var/lib/securedrop/keys/.# that match this specific pattern) or ignored case-by-case by admins.

@rocodes rocodes changed the title Suppress ossec alerts for temporary PID files created during source deletion Suppress ossec alerts for temporary PID files created by GPG May 7, 2024
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