Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to import 3rd party IDS rulesets' URLs into Snort?

    IDS/IPS
    3
    8
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xelibri
      last edited by

      I'm not sure is it possible to add additional IDS/IPS ruleset URLs without copying them manually into custom.rules config?

      Eg. this one could be worth adding:

      https://urlhaus.abuse.ch/api/

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        @xelibri:

        I'm not sure is it possible to add additional IDS/IPS ruleset URLs without copying them manually into custom.rules config?

        Eg. this one could be worth adding:

        https://urlhaus.abuse.ch/api/

        Thanks in advance!

        At the moment neither the Snort nor Suricata packages support adding of third-party rulesets outside of the current built-in defaults.  That is something that is being looked into, but there are some obstacles to overcome within the GUI itself to make the feature useful.  For now, copying and pasting them into a custom rules configuration as you state is the only way.

        Bill

        1 Reply Last reply Reply Quote 0
        • R
          rebytr
          last edited by

          After copying and pasting them in the custom rules panel, what's the trick to get around the error below?

          Custom rules have errors: Fatal Error, Quitting..ERROR: /usr/local/etc/snort/snort_8066_em1/rules/custom.rules(1) Bad protocol: http.
          
          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            @rebman77:

            After copying and pasting them in the custom rules panel, what's the trick to get around the error below?

            Custom rules have errors: Fatal Error, Quitting..ERROR: /usr/local/etc/snort/snort_8066_em1/rules/custom.rules(1) Bad protocol: http.
            

            Have you changed the enabled/disabled state of any preprocessors?  Is the HTTP_INSPECT preprocessor enabled?

            Bill

            1 Reply Last reply Reply Quote 0
            • R
              rebytr
              last edited by

              Preprocessors are all default settings.  Only additional one I have enabled is the Application ID Detection preprocessor.

              1 Reply Last reply Reply Quote 0
              • bmeeksB
                bmeeks
                last edited by

                Well, according to the current Snort documentation here:  http://manual-snort-org.s3-website-us-east-1.amazonaws.com/node29.html#SECTION00422000000000000000

                Snort does not currently support HTTP as a protocol in the rule header.  Suricata does, but not Snort.  Perhaps the 3rd party ruleset you are using is really for Suricata?  I would check with the provider and see if they have a different version for Snort.  Sorry I did not catch this in my earlier reply.  I sometimes get Snort and Suricata confused since I get questions about both packages …  :-[

                Bill

                1 Reply Last reply Reply Quote 0
                • R
                  rebytr
                  last edited by

                  Yep, thats the problem. Interesting thing is urlhaus has the IDS ruleset labeled for both Snort and Suricata. (They even tweet when they make updates to the ruleset that it is for both).  I have to assume they have never tried their ruleset in Snort.

                  1 Reply Last reply Reply Quote 0
                  • bmeeksB
                    bmeeks
                    last edited by

                    @rebman77:

                    I have to assume they have never tried their ruleset in Snort.

                    I would agree …  :)

                    Bill

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.