{"id":13530835,"url":"https://github.com/regit/luaevilbit","last_synced_at":"2025-04-04T13:16:20.051Z","repository":{"id":141524568,"uuid":"6813004","full_name":"regit/luaevilbit","owner":"regit","description":"A lua implementation of RFC 3514 for suricata","archived":false,"fork":false,"pushed_at":"2012-11-22T14:06:00.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-09T22:46:07.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-22T12:47:22.000Z","updated_at":"2022-01-30T20:08:39.000Z","dependencies_parsed_at":"2023-03-13T10:32:53.386Z","dependency_job_id":null,"html_url":"https://github.com/regit/luaevilbit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Fluaevilbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Fluaevilbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Fluaevilbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Fluaevilbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regit","download_url":"https://codeload.github.com/regit/luaevilbit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182421,"owners_count":20897381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:56.122Z","updated_at":"2025-04-04T13:16:20.034Z","avatar_url":"https://github.com/regit.png","language":"Lua","funding_links":[],"categories":["Rule/Security Content Management and Handling"],"sub_categories":[],"readme":"=================================================\nAn Evil bit implementation in luajit for Suricata\n=================================================\n\nWhat's is this\n==============\n\nThis is an implementation of RFC 3514 for Suricata written by\n`Guillaume Prigent \u003chttp://www.diateam.net/\u003e`_ and available in public\ndomain.\n\nDescription\n===========\n\nThe `RFC 3514 \u003chttp://www.ietf.org/rfc/rfc3514.txt\u003e`_ has been published 1 April 2003 and\ndefine a security flag in the IPv4 header as a means of distinguishing good packets\nfrom evil packets.\n\nImplementation details are provided for IDS ::\n\n Because of their known propensity for false negatives and\n false positives, IDSs MUST apply a probabilistic correction\n factor when evaluating the evil bit.\n\nTo implement this in Suricata, we need to have access to random number. This is not\nprovided by classic rules, so a good way to do so is to create a luajit signature.\n\nTesting\n=======\n\nTo be able to use luajit signatures, you need to use at least suricata 1.4-beta2. And you\nmust build it with luajit enabled. For that you need to have luajit on your system.\nOn debian and ubuntu, you can install libluajit-5.1-dev ::\n\n sudo aptitude install libluajit-5.1-dev\n\nOnce this is done, you can build Suricata ::\n\n $ ./configure --enable-luajit\n $ make\n $ make install\n $ make install-full # install configuration and download rules\n\nEnter into luaevilbit directory and copy evilflag.lua to rules directory ::\n\n $ sudo cp evilflag.lua /usr/local/etc/suricata/rules/\n\nYou can then run ::\n\n $ sudo suricata -i eth0 -S evilflag.rules\n\nIn another terminal #1 ::\n\n  $ sudo tail -F /usr/local/var/log/suricata/fast.log \n\nIn another terminal #2 (replace ip address 192.168.10.230 by what you want) ::\n  \n  $ sudo icmp_evil_flag.py 192.168.10.230\n\nIn the terminal #1 here you see ::\n\n  10/20/2012-18:39:44.820424  [**] [1:2:0] LUAJIT Evil Flag [**] [Classification: (null)] [Priority: 3] {ICMP} 0.0.0.0:8 -\u003e 192.168.10.230:0\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregit%2Fluaevilbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregit%2Fluaevilbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregit%2Fluaevilbit/lists"}