feat(evidence): IDS section from Suricata's eve.json #29

Open
thelion wants to merge 0 commits from thelion/evidence-ids into main AGit
Owner

POST /v1/evidence now adds an "ids" section: what Suricata logged about
the shell over the last 7 days (or since the account was made), read
newest-first across eve.json and its rotations, capped at 10s and 200 MB
(marked truncated when cut).

  • every alert either way, folded per (direction, rule): count, first and
    last seen, distinct peers and ports, top peers and ports; Suricata's own
    decoder/stream notes ("SURICATA …") only counted
  • SSH client/server software, TLS SNI with JA3/JA4 (the shell's own, and
    clients reaching its names through Traefik)
  • HTTP on Traefik's hop to the shell, by real client (X-Forwarded-For),
    host, path and user agent, websocket upgrades marked; skipped quietly
    when Suricata doesn't log http
  • the newest 500 raw alert lines, with totals

The report keeps its shape: the section is plain text as before, and the
same data is in a new "ids" field for managebot to classify and lay out.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

POST /v1/evidence now adds an "ids" section: what Suricata logged about the shell over the last 7 days (or since the account was made), read newest-first across eve.json and its rotations, capped at 10s and 200 MB (marked truncated when cut). - every alert either way, folded per (direction, rule): count, first and last seen, distinct peers and ports, top peers and ports; Suricata's own decoder/stream notes ("SURICATA …") only counted - SSH client/server software, TLS SNI with JA3/JA4 (the shell's own, and clients reaching its names through Traefik) - HTTP on Traefik's hop to the shell, by real client (X-Forwarded-For), host, path and user agent, websocket upgrades marked; skipped quietly when Suricata doesn't log http - the newest 500 raw alert lines, with totals The report keeps its shape: the section is plain text as before, and the same data is in a new "ids" field for managebot to classify and lay out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(evidence): IDS section from Suricata's eve.json
Some checks failed
CI / test (push) Successful in 4m22s
CI / test (pull_request) Successful in 4m42s
CI / release (pull_request) Failing after 0s
CI / release (push) Successful in 2m51s
9b89b0a45d
POST /v1/evidence now adds an "ids" section: what Suricata logged about
the shell over the last 7 days (or since the account was made), read
newest-first across eve.json and its rotations, capped at 10s and 200 MB
(marked truncated when cut).

- every alert either way, folded per (direction, rule): count, first and
  last seen, distinct peers and ports, top peers and ports; Suricata's own
  decoder/stream notes ("SURICATA …") only counted
- SSH client/server software, TLS SNI with JA3/JA4 (the shell's own, and
  clients reaching its names through Traefik)
- HTTP on Traefik's hop to the shell, by real client (X-Forwarded-For),
  host, path and user agent, websocket upgrades marked; skipped quietly
  when Suricata doesn't log http
- the newest 500 raw alert lines, with totals

The report keeps its shape: the section is plain text as before, and the
same data is in a new "ids" field for managebot to classify and lay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Some checks failed
CI / test (push) Successful in 4m22s
CI / test (pull_request) Successful in 4m42s
CI / release (pull_request) Failing after 0s
CI / release (push) Successful in 2m51s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin +refs/pull/29/head:thelion/evidence-ids
git switch thelion/evidence-ids

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff thelion/evidence-ids
git switch thelion/evidence-ids
git rebase main
git switch main
git merge --ff-only thelion/evidence-ids
git switch thelion/evidence-ids
git rebase main
git switch main
git merge --no-ff thelion/evidence-ids
git switch main
git merge --squash thelion/evidence-ids
git switch main
git merge --ff-only thelion/evidence-ids
git switch main
git merge thelion/evidence-ids
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/shells-config!29
No description provided.