Enhance SecurityAnalyzer with extended threat detection and reporting#1
Merged
Enhance SecurityAnalyzer with extended threat detection and reporting#1
Conversation
- Introduced new threat counters for various attack types, including sensitive file access, web shells, and credential stuffing. - Updated the AnalyzeEntry method to incorporate additional security checks and categorize threats more effectively. - Enhanced the SecuritySummary model to include overall statistics and detailed breakdowns of attack categories. - Improved ConsoleUI to display a comprehensive security analysis report, including top attack types and extended threat categories. - Refactored the CLI to aggregate log entries for better processing and reporting of security metrics.
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
- Updated AnalyzeEntry method to ensure scanning behavior is only counted once per IP. - Enhanced checkMaliciousUserAgent function to return specific status codes for empty and malicious user agents. - Added error handling for user input in CLI to improve robustness.
… threat counts per IP - Updated logic to ensure credential stuffing and API abuse are only counted once per IP address. - Enhanced threat detection accuracy by checking existing attack types before incrementing counts.
…est tracking - Introduced coreAttackPatterns to streamline attack pattern checks, ensuring only relevant patterns are evaluated. - Added apiRequestCount to ipThreatData for tracking API requests separately, improving detection of API abuse. - Updated AnalyzeEntry method to increment apiRequestCount for specific API paths and adjusted API enumeration checks accordingly. - Refined checkAttackPatterns to focus on core patterns, preventing double-counting of threats.
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.
Uh oh!
There was an error while loading. Please reload this page.