Command sequences. Closes #457#468
Merged
regulartim merged 9 commits intointelowlproject:developfrom Feb 21, 2025
Merged
Conversation
mlodic
added a commit
that referenced
this pull request
Feb 24, 2025
* Command sequences. Closes #457 (#468) * add CommandSequence model * add CommandSequence model to admin page * make migration file * add unique constraint to commands hash in CommandSequence model * add extraction of command sequences * add tests * add clustering task for command sequences * limit single command length during extraction * add tests for clustering * add 10 second delay to extraction jobs (will hopefully fix #451) * removed twitter publish cause not working * Deliver scores in Feeds API (#473) * add scores to serializer * fix docstring * add scores to required fields in deeds_response function * adapt tests * fix constant assignments (see #469) * make pending migration * skip empty IP address fields when extracting attacker data fixes #475 * Advanced feeds integration (#476) * Rename "age" to "prioritize" in backend code and add new prioritization mechanisms * Rename "age" to "prioritize" in frontend code * fix tests * adapt frontend tests * Bump numpy from 2.2.2 to 2.2.3 in /requirements (#465) Bumps [numpy](https://github.com/numpy/numpy) from 2.2.2 to 2.2.3. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](numpy/numpy@v2.2.2...v2.2.3) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bump --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tim <46972822+regulartim@users.noreply.github.com> Co-authored-by: tim <tim.leonhard@posteo.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a new data model, CommandSequence, that captures command patterns from Cowrie honeypot sessions. Also included is a clustering system for these sequences, implemented as a daily cronjob. The clustering feature can be enabled/disabled via environment variable due to computational requirements (O(n²) complexity).
Related issues
Type of change
Checklist
develop.Black,Flake,Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.Important Rules