Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add red highlight for profiles generating alerts #1118

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

AbhiramMasna
Copy link

Description:
This change addresses the issue where only the "timewindows" were highlighted in red for profiles generating alerts during PCAP analysis. To improve visibility and usability, the entire profile row is now marked in red if it generates an alert.

Why This Change Was Made:
Marking only the "timewindows" in red was insufficient for quickly identifying profiles linked to alerts. This enhancement makes it easier for users to locate and assess alert-generating profiles in the interface.

Changes Made:
Updated the tableDefs.js file to apply a red background color to the row of any profile that generates an alert.
Used the fnRowCallback function in the profiles table definition to apply the conditional formatting.

@AlyaGomaa AlyaGomaa changed the base branch from master to develop December 16, 2024 20:34
@AlyaGomaa
Copy link
Collaborator

AlyaGomaa commented Dec 16, 2024

Hey @AbhiramMasna Thanks for contributing!

Can you tell me how did you test your changes?

When i test them using the following command
./slips.py -e 1 -f dataset/test6-malicious.suricata.json -w

the IP 192.168.1.129 generates an alert, so i expect to see it marked in red, however it's not marked in red when i go to the web interface
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants