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

[auditd] Postoverflow whitelist blank source and type in metrics #3438

Open
LaurenceJJones opened this issue Feb 3, 2025 · 3 comments
Open
Labels
kind/bug Something isn't working needs/triage

Comments

@LaurenceJJones
Copy link
Contributor

I need to investigate why the crowdsecurity/auditd whitelist causes a : data source being shown:

│ crowdsecurity/auditd-whitelisted-process │ package managers            │ 251    │ 5           │

then in datasource I see

╭────────────────────────────────┬────────────┬──────────────┬────────────────┬────────────────────────┬───────────────────╮
│ Source                         │ Lines read │ Lines parsed │ Lines unparsed │ Lines poured to bucket │ Lines whitelisted │
├────────────────────────────────┼────────────┼──────────────┼────────────────┼────────────────────────┼───────────────────┤
│ :                              │ -          │ -            │ -              │ -                      │ 5                 │
Copy link

github-actions bot commented Feb 3, 2025

@LaurenceJJones: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

Copy link

github-actions bot commented Feb 3, 2025

@LaurenceJJones: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind bug
  • /kind packaging
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@LaurenceJJones
Copy link
Contributor Author

LaurenceJJones commented Feb 3, 2025

debug:

cs_node_hits_total{name="crowdsecurity/auditd-whitelisted-process",source="",type=""} 252
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/audit/audit.log",type="file"} 420894
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/auth.log",type="file"} 1151
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/kern.log",type="file"} 1151
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/mail.log",type="file"} 3264
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/nginx/access.log",type="file"} 75645
cs_node_hits_total{name="crowdsecurity/whitelists",source="/var/log/nginx/error.log",type="file"} 1913
cs_node_hits_total{name="crowdsecurity/whitelists",source="appsec",type="appsec"} 5
cs_node_hits_total{name="crowdsecurity/whitelists",source="endlessh",type="docker"} 9250
cs_node_wl_hits_ok_total{name="crowdsecurity/auditd-whitelisted-process",reason="package managers",source="",type=""} 5
cs_node_wl_hits_ok_total{name="my/whitelists",reason="personal ip/ranges",source="/var/log/mail.log",type="file"} 2954
cs_node_wl_hits_ok_total{name="my/whitelists",reason="personal ip/ranges",source="/var/log/nginx/access.log",type="file"} 68055
cs_node_wl_hits_ok_total{name="my/whitelists",reason="personal ip/ranges",source="/var/log/nginx/error.log",type="file"} 38

type and source are both blank for cs_node_hits_total and cs_node_wl_hits_ok_total

NodesWlHits.With(prometheus.Labels{"source": p.Line.Src, "type": p.Line.Module, "name": n.Name, "reason": n.Whitelist.Reason}).Inc()

p.Line must be empty upon changing to an overflow alert? or is specific the pid based detections.

@LaurenceJJones LaurenceJJones added kind/bug Something isn't working and removed needs/kind labels Feb 3, 2025
@LaurenceJJones LaurenceJJones changed the title [auditd] Postoverflow whitelist seems to inject a : datasource [auditd] Postoverflow whitelist blank source and type in metrics Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working needs/triage
Projects
None yet
Development

No branches or pull requests

1 participant