The Authelia parser (v0.9) doesn't classify `Unsuccessful 1FA authentication attempt by user ''`

未关闭 适合新手
#2,001 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
yaml

调研方向

从阅读 Authelia 解析器(v0.9)和相关 issue #1268 开始;该 issue 还在 /etc/crowdsec/parsers/s02-enrich/authelia-empty-user.yaml 中给出了一个变通方案。检查解析器如何对认证失败消息进行分类。完成的标准是:用户名为空的消息被分类为 auth_failed,从而让暴力破解场景能够捕获它。

由索引模型根据 Issue 内容生成。

描述

The Authelia parser (v0.9) doesn't classify Unsuccessful 1FA authentication attempt by user '' as auth_failed, so the brute-force scenarios don't pick it up.

Looks related to #1268, but with a different log message.


AI wrote me this small workaround:
/etc/crowdsec/parsers/s02-enrich/authelia-empty-user.yaml

name: local/authelia-empty-user
description: "Classify Authelia failed authentication with empty username"

filter: >-
  evt.Meta.service == "authelia" &&
  evt.Unmarshaled.authelia.msg == "Unsuccessful 1FA authentication attempt by user ''"

statics:
  - meta: log_type
    value: auth_failed

With that it did find empty user login attempts too.

Could this case be handled upstream as well?

主要语言
Python
星标
257
派生
235
平均合并
2 天 10 小时
30 天内合并 PR
26

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

crowdsecurity/hub 的其他 Issue

查看 crowdsecurity/hub 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。