Skip to content

Comments

Feat/sharry support#1685

Open
plague-doctor wants to merge 4 commits intocrowdsecurity:masterfrom
plague-doctor:feat/sharry-support
Open

Feat/sharry support#1685
plague-doctor wants to merge 4 commits intocrowdsecurity:masterfrom
plague-doctor:feat/sharry-support

Conversation

@plague-doctor
Copy link
Contributor

Summary

This PR adds CrowdSec support for Sharry, a self-hosted file sharing platform.

Description

  • Add sharry-logs parser for authentication failures
  • Add sharry-bf scenario (5 failures in 20s -> 1m ban)
  • Add collection, parser, and scenario documentation
  • Add test log samples
  • Detects: Authentication attempt failure for username X from ip Y

Checklist

  • I have read the contributing guide
  • I have tested my changes locally
  • For new parsers or scenarios, tests have been added
  • I have run the hub linter and no issues were reported (see contributing guide)
  • Automated tests are passing
  • AI was used to generate any/all content of this PR (for tests)

plague-doctor and others added 4 commits February 12, 2026 13:11
- Add sharry-logs parser for authentication failures
- Add sharry-bf scenario (5 failures in 20s -> 1m ban)
- Add collection, parser, and scenario documentation
- Add test log samples
- Detects: Authentication attempt failure for username X from ip Y
- Add sharry-logs parser tests with assertions
- Add sharry-bf scenario tests with 5 authentication failures
- Tests verify correct field extraction and scenario triggering
- Add timezone support to parser (UTC+11 for Sharry logs)
- Add StrTimeFormat with timezone offset handling
- Reduce scenario capacity from 5 to 4 (5 events need capacity 4 to overflow)
- Update test assertions to expect +11:00 timezone format

Fixes test failures where:
1. Timestamps weren't being parsed correctly (was defaulting to 1970)
2. Scenario wasn't triggering (needed 6 events with capacity 5, only had 5)
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

Successfully merging this pull request may close these issues.

1 participant