Comments (11)
Hi,
If you want rules to be displayed in scirius you have scirius to know them.
So you need to upload them via scirius. To do so add a source and choose single rule file and upload.
Le 22 juil. 2015 8:02 AM, Bugs [email protected] a écrit :Hi,
I have created a simple test rule in /etc/suricata/rules/local.rules and added "- local-rules" under "-scirius.rules" in suricata.yaml
The content of /etc/suricata/rules/local.rules is:
alert icmp any any -> any any (msg:"ICMP Test"; classtype:policy-violation; sid:10000001; rev:1;)
It means any pings will generate an alert.
I did a sudo "service suricata restart"
pinged google.com
and I can see alerts in SELKS dashboard OK, (and in fast.log).
The problem is with Scirius.
Problem 1:
If I go to "Suricata" in Scirius I cannot see the alert in "rules activity"
Problem 2:
I can actually see the alert in the pie chart/circle summary of Scirius (how do you call that?! :)
but if I click on it then I am getting the following error, instead of loading the rule:
Page not found (404)
Request Method: GET
Request URL: https://192.168.0.5/rules/rule/pk/10000001/
So I suspect the way I have added my local rule is not the right way? or that I have missed a step so that Scirius can deal with local rules?
Thanks.
B.
—Reply to this email directly or view it on GitHub.
from scirius.
Thanks Regit, I did just that. But for this to work I need to do 2x things which I think is a bit odd.
- I need to add the rules as you mentioned in Scirius by adding a source through uploading a file
- I also need to have the same rule defined in local.rules
If I don't do 1) then Scirius doesn't see the rule
if I don't do 2) then Suricata doesn't process the alert! and it only sees past hit/occurence of the SID
I would have thought just doing 1) should have been enough...
Is that a normal behaviour or a bug?
from scirius.
You should also not forget to update. From Suricata menu, then click on "update".
from scirius.
yes on @pevma remark. And you should also:
- add the source to the running ruleset
- activate the categorie in the ruleset
Then - update suricata
from scirius.
Thanks Regit and Pevma. It works indeed!
I am just wondering, where is the rule file once you upload it in Scirius? I am also guessing that if you want to add new rules you need to remove the source from the GUI and upload an updated rule file with your new rules and follow the same process. In which case do you have to remove the source, update in GUI, upload new source and update?
In case someone is reading this thread, the complete process to add new rules through Scirius is to:
- Go to Sources -> Add
- Give it a name, Method = Upload, Datatype = Individual Signature File
- File -> Choose file -> Select your local rule file (local to the computer you are running your browser from)
- Submit
- Go to Rulesets -> Click on Default SELKS ruleset -> Edit (menu on the left)
- Click Edit Sources -> Select the ruleset you have just uploaded -> Update Sources
- Click Edit Categories -> At the bottom, select your new ruleset -> Update Categories
- Go to Suricata -> Click Update
- Select all action (might just need to select update but just in case) -> Click apply
Et voila.
Note to developpers... might be nice to have a slightly simpler workflow ;)
If I may, I would suggest you bundle step 4, 5, 6 and 7
and then inform the user twhat has just been done (added a source and categories, with a list of the rules added) and if they still want to go ahead then let them know to do step 8
B.
from scirius.
I've just updated code with db2cd94 to simplify the procedure. You can now simply select rulesets on "Add a source" form. If you do that then all categories of the new source are added to the ruleset.
from scirius.
By the way on point 9. of previous procedure, you mainly need the build and push steps to construct a new ruleset and reload suricata config.
from scirius.
Thanks!
from scirius.
Hello!
I've read the topic. But what about the another ruleset? Not default one. I made it and named Custom ruleset. I assigned new source to this ruleset and activated category. Then updated, built and pushed in Suricata. No result and no my custom rules in /etc/suricata/rules/scirius.rules.
from scirius.
@VN1977 - could you please open a diff issue.
I am not sure if i understand correctly - you created and uploaded some custom rules but they do not appear anywhere?
from scirius.
It's OK.
I had a mistake with a rule.
from scirius.
Related Issues (20)
- No Capture stats, Memory usage and problem indicators statisctics using the new scirius version HOT 8
- Error add public source HOT 7
- KeyError on Hunt whith latest django-webpack-loader (v1.0.0)
- First start issue HOT 5
- Python 2.7???? HOT 5
- does scirius fetch dashboard from kibana? HOT 1
- Scirius CE v3.7.0 GUI problem in safari 15 HOT 2
- docker: Get cyberchef pre-installed in the docker image HOT 2
- Failed to minify the code from this file: ./node_modules/patternfly-react/dist/esm/common/helpers.js:14 HOT 1
- Logging with python requests library error: Forbidden(403) CSRF verification failed HOT 1
- USE_KIBANA/ELASTICSEARCH=0 ignored, still tries to connect HOT 2
- Set python_requires and clarify Python support
- Number of rules on the source page never increments during updates in Scirius
- How to show more than 20 last rules activity in scirius?
- Batch activate commented rules
- Unable to Build Docker Image
- Fails on sources updating HOT 3
- Suricata won't restart after build & push ruleset HOT 3
- Install issues
- Error reading webpack-stats.prod.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scirius.