Re: [ossec-list] Re: Testing OSSEC
On Mon, Aug 28, 2017 at 12:17 AM, Ritu Soniwrote: >>> hey, > > I have added the rule in local_rules.xml file in way as in the > attached image.. > After adding the rule, i have restarted OSSEC services. But I get > the following errors: > Starting OSSEC HIDS v2.8.3 (by Trend Micro Inc.)... > Started ossec-dbd... > 2017/08/28 09:40:55 ossec-config(1501): ERROR: Invalid SMTP > Server: alt1.gmail-smtp-in.l.google.com. > 2017/08/28 09:40:55 ossec-config(1202): ERROR: Configuration error > at '/var/ossec/etc/ossec.conf'. Exiting. > 2017/08/28 09:40:55 ossec-maild(1202): ERROR: Configuration error > at '/var/ossec/etc/ossec.conf'. Exiting. > ossec-maild did not start correctly. > Did i miss anything? or any other command should have been used to > make that rule work? Please guide me to solve this problem. That error has nothing to do with the rule you added. I think there's an issue with name resolution for maild, but I haven't looked into it yet. >> >> >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ossec-list+...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ossec-list+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ossec-list] Re: Testing OSSEC
On Aug 24, 2017 12:56 PM, "Ritu Soni"wrote: Ok, thanks. have you added the rule in local_rules.xml file? or any other xml file? I added it to my local_rules.xml file, outside of the tag near the bottom. On Thursday, August 24, 2017 at 6:14:56 PM UTC+5:30, dan (ddpbsd) wrote: > > On Thu, Aug 24, 2017 at 8:35 AM, dan (ddp) wrote: > > > > > > On Aug 24, 2017 4:40 AM, "Ritu Soni" wrote: > > > > Hello, ok > > > I simply want to test the rule for DDOS Attack,which is discussed > > previously: > > local_rules.xml: > > > > > > > > > > > > attacks|attack|automatic_attack > > > > > > > Attacks from same source IP > > > > > > > > > > But this is not working. I get errors while adding this new rule. > > What is the possible solution for making this rule work? > > > > > > Keeping those errors a secret is bot going to help me help you solve the > > problem. Either look at the errors and troubleshoot your problem, or > share > > them and let me do it. > > > > Testing this rule provided me with no errors, so my first guess is > that you have the tag inside of another tag. > > > > > > > On Wednesday, August 23, 2017 at 5:46:17 PM UTC+5:30, dan (ddpbsd) > wrote: > >> > >> > >> > >> On Aug 23, 2017 6:18 AM, "Ritu Soni" wrote: > >> > >> Hello, > >> My work requirement is that OSSEC should generate an alert " Attack > >> Detected " ,when the request from same ip address is received by the > server > >> for 3 or more times within 300 seconds. > >> I have done changes in syslog_rules.xml file: > >> > >> attacks|attack|automatic_attack > > >> alert_by_email > >> DDOS Attack Detected > >> > >> But when i restart OSSEC,it generates an error msg: > >> OSSEC analysisd: Testing rules failed. Configuration error. Exiting. > >> > >> Are these changes made correct?if not, please suggest the changes to > >> achieve the same. > >> > >> > >> > >> I don't see anything obviously incorrect with the changes. I'm not sure > >> if_matched_group accepts multiple groups, or if they are pipe delimited > >> though. Getting the actual errors (from logtest -t or the ossec.log) > might > >> help. > >> > >> Stylistically though, modifying the rules files (except > local_rules.xml) > >> is a bad idea. Changes will be overwritten during updates. Also, I > consider > >> rule 1002 to be very important, and changing it isn't something I > encourage. > >> > >> > >> > >> On Monday, August 21, 2017 at 10:43:53 PM UTC+5:30, dan (ddpbsd) wrote: > >>> > >>> > >>> > >>> On Aug 21, 2017 1:07 PM, "Ritu Soni" wrote: > >>> > >>> Hey, > >>> When i perform any changes to xml files, ossec stopped working. > >>> should i use ''make" command for those changes to work or any other > >>> command after performing the changes ? > >>> > >>> > >>> > >>> You can run `ossec-logtest -t` to test your changes before reatarting > >>> ossec. If there are issues, it should display error messages. > > > >>> > >>> > >>> On Monday, August 21, 2017 at 10:25:45 PM UTC+5:30, dan (ddpbsd) > wrote: > > > > On Aug 21, 2017 12:54 PM, "Ritu Soni" wrote: > > hello, > I have installed OSSEC on UBUNTU server. > I want to perform changes in OSSEC rules, so that it can detect an > attack and display an alert like "DDOS Attack". > Is it possible to perform changes in rules of OSSEC using xml files? > What could be the possible method for this, please guide me. > > > Local additiona or changes to the rules can be done in > /var/ossec/rules/local_rules.xml > > > > > -- > > --- > You received this message because you are subscribed to the Google > Groups "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, > send > an email to ossec-list+...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > >>> -- > >>> > >>> --- > >>> You received this message because you are subscribed to the Google > Groups > >>> "ossec-list" group. > >>> To unsubscribe from this group and stop receiving emails from it, send > an > >>> email to ossec-list+...@googlegroups.com. > >>> For more options, visit https://groups.google.com/d/optout. > >>> > >>> > >> -- > >> > >> --- > >> You received this message because you are subscribed to the Google > Groups > >> "ossec-list" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to ossec-list+...@googlegroups.com. > >> For more options, visit https://groups.google.com/d/optout. > >> > >> > > -- > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "ossec-list" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to
Re: [ossec-list] Re: Testing OSSEC
Hey, > > When I add the same rule in local_rules.xml file, I get the following errors: *2017/08/24 22:54:00 ossec-config(1501): ERROR: Invalid SMTP Server: alt1.gmail-smtp-in.l.google.com.* *2017/08/24 22:54:00 ossec-config(1202): ERROR: Configuration error at '/var/ossec/etc/ossec.conf'. Exiting.* *2017/08/24 22:54:00 ossec-maild(1202): ERROR: Configuration error at '/var/ossec/etc/ossec.conf'. Exiting.* *ossec-maild did not start correctly.* How to solve this ? -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ossec-list] Re: Testing OSSEC
Ok, thanks. have you added the rule in local_rules.xml file? or any other xml file? On Thursday, August 24, 2017 at 6:14:56 PM UTC+5:30, dan (ddpbsd) wrote: > > On Thu, Aug 24, 2017 at 8:35 AM, dan (ddp)> wrote: > > > > > > On Aug 24, 2017 4:40 AM, "Ritu Soni" > wrote: > > > > Hello, ok > > I simply want to test the rule for DDOS Attack,which is discussed > > previously: > > local_rules.xml: > > > > > > > > > > > > > attacks|attack|automatic_attack > > > > > > Attacks from same source IP > > > > > > > > > > But this is not working. I get errors while adding this new rule. > > What is the possible solution for making this rule work? > > > > > > Keeping those errors a secret is bot going to help me help you solve the > > problem. Either look at the errors and troubleshoot your problem, or > share > > them and let me do it. > > > > Testing this rule provided me with no errors, so my first guess is > that you have the tag inside of another tag. > > > > > > > On Wednesday, August 23, 2017 at 5:46:17 PM UTC+5:30, dan (ddpbsd) > wrote: > >> > >> > >> > >> On Aug 23, 2017 6:18 AM, "Ritu Soni" wrote: > >> > >> Hello, > >> My work requirement is that OSSEC should generate an alert " Attack > >> Detected " ,when the request from same ip address is received by the > server > >> for 3 or more times within 300 seconds. > >> I have done changes in syslog_rules.xml file: > >> > >> > attacks|attack|automatic_attack > >> alert_by_email > >> DDOS Attack Detected > >> > >> But when i restart OSSEC,it generates an error msg: > >> OSSEC analysisd: Testing rules failed. Configuration error. Exiting. > >> > >> Are these changes made correct?if not, please suggest the changes to > >> achieve the same. > >> > >> > >> > >> I don't see anything obviously incorrect with the changes. I'm not sure > >> if_matched_group accepts multiple groups, or if they are pipe delimited > >> though. Getting the actual errors (from logtest -t or the ossec.log) > might > >> help. > >> > >> Stylistically though, modifying the rules files (except > local_rules.xml) > >> is a bad idea. Changes will be overwritten during updates. Also, I > consider > >> rule 1002 to be very important, and changing it isn't something I > encourage. > >> > >> > >> > >> On Monday, August 21, 2017 at 10:43:53 PM UTC+5:30, dan (ddpbsd) wrote: > >>> > >>> > >>> > >>> On Aug 21, 2017 1:07 PM, "Ritu Soni" wrote: > >>> > >>> Hey, > >>> When i perform any changes to xml files, ossec stopped working. > >>> should i use ''make" command for those changes to work or any other > >>> command after performing the changes ? > >>> > >>> > >>> > >>> You can run `ossec-logtest -t` to test your changes before reatarting > >>> ossec. If there are issues, it should display error messages. > > > >>> > >>> > >>> On Monday, August 21, 2017 at 10:25:45 PM UTC+5:30, dan (ddpbsd) > wrote: > > > > On Aug 21, 2017 12:54 PM, "Ritu Soni" wrote: > > hello, > I have installed OSSEC on UBUNTU server. > I want to perform changes in OSSEC rules, so that it can detect an > attack and display an alert like "DDOS Attack". > Is it possible to perform changes in rules of OSSEC using xml files? > What could be the possible method for this, please guide me. > > > Local additiona or changes to the rules can be done in > /var/ossec/rules/local_rules.xml > > > > > -- > > --- > You received this message because you are subscribed to the Google > Groups "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, > send > an email to ossec-list+...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > >>> -- > >>> > >>> --- > >>> You received this message because you are subscribed to the Google > Groups > >>> "ossec-list" group. > >>> To unsubscribe from this group and stop receiving emails from it, send > an > >>> email to ossec-list+...@googlegroups.com. > >>> For more options, visit https://groups.google.com/d/optout. > >>> > >>> > >> -- > >> > >> --- > >> You received this message because you are subscribed to the Google > Groups > >> "ossec-list" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to ossec-list+...@googlegroups.com. > >> For more options, visit https://groups.google.com/d/optout. > >> > >> > > -- > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "ossec-list" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to
Re: [ossec-list] Re: Testing OSSEC
On Aug 24, 2017 4:40 AM, "Ritu Soni"wrote: Hello, I simply want to test the rule for DDOS Attack,which is discussed previously: local_rules.xml: attacks|attack|automatic_attack Attacks from same source IP But this is not working. I get errors while adding this new rule. What is the possible solution for making this rule work? Keeping those errors a secret is bot going to help me help you solve the problem. Either look at the errors and troubleshoot your problem, or share them and let me do it. On Wednesday, August 23, 2017 at 5:46:17 PM UTC+5:30, dan (ddpbsd) wrote: > > > On Aug 23, 2017 6:18 AM, "Ritu Soni" wrote: > > Hello, > My work requirement is that OSSEC should generate an alert " Attack > Detected " ,when the request from same ip address is received by the server > for 3 or more times within 300 seconds. > I have done changes in syslog_rules.xml file: > ** > *attacks|attack|automatic_attack* > *alert_by_email* > *DDOS Attack Detected* > * * > But when i restart OSSEC,it generates an error msg: > *OSSEC analysisd: Testing rules failed. Configuration error. Exiting*. > > Are these changes made correct?if not, please suggest the changes to > achieve the same. > > > > I don't see anything obviously incorrect with the changes. I'm not sure > if_matched_group accepts multiple groups, or if they are pipe delimited > though. Getting the actual errors (from logtest -t or the ossec.log) might > help. > > Stylistically though, modifying the rules files (except local_rules.xml) > is a bad idea. Changes will be overwritten during updates. Also, I consider > rule 1002 to be very important, and changing it isn't something I > encourage. > > > > On Monday, August 21, 2017 at 10:43:53 PM UTC+5:30, dan (ddpbsd) wrote: > >> >> >> On Aug 21, 2017 1:07 PM, "Ritu Soni" wrote: >> >> Hey, >> When i perform any changes to xml files, ossec stopped working. >> should i use ''make" command for those changes to work or any other >> command after performing the changes ? >> >> >> >> You can run `ossec-logtest -t` to test your changes before reatarting >> ossec. If there are issues, it should display error messages. >> >> >>> >> >> On Monday, August 21, 2017 at 10:25:45 PM UTC+5:30, dan (ddpbsd) wrote: >>> >>> >>> >>> On Aug 21, 2017 12:54 PM, "Ritu Soni" wrote: >>> >>> hello, >>> I have installed OSSEC on UBUNTU server. >>> I want to perform changes in OSSEC rules, so that it can detect an >>> attack and display an alert like "DDOS Attack". >>> Is it possible to perform changes in rules of OSSEC using xml files? >>> What could be the possible method for this, please guide me. >>> >>> >>> Local additiona or changes to the rules can be done in >>> /var/ossec/rules/local_rules.xml >>> >>> >>> >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "ossec-list" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to ossec-list+...@googlegroups.com. >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ossec-list+...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ossec-list+...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ossec-list] Re: Testing OSSEC
On Aug 23, 2017 6:18 AM, "Ritu Soni"wrote: Hello, My work requirement is that OSSEC should generate an alert " Attack Detected " ,when the request from same ip address is received by the server for 3 or more times within 300 seconds. I have done changes in syslog_rules.xml file: ** *attacks|attack|automatic_attack* *alert_by_email* *DDOS Attack Detected* * * But when i restart OSSEC,it generates an error msg: *OSSEC analysisd: Testing rules failed. Configuration error. Exiting*. Are these changes made correct?if not, please suggest the changes to achieve the same. I don't see anything obviously incorrect with the changes. I'm not sure if_matched_group accepts multiple groups, or if they are pipe delimited though. Getting the actual errors (from logtest -t or the ossec.log) might help. Stylistically though, modifying the rules files (except local_rules.xml) is a bad idea. Changes will be overwritten during updates. Also, I consider rule 1002 to be very important, and changing it isn't something I encourage. On Monday, August 21, 2017 at 10:43:53 PM UTC+5:30, dan (ddpbsd) wrote: > > > On Aug 21, 2017 1:07 PM, "Ritu Soni" wrote: > > Hey, > When i perform any changes to xml files, ossec stopped working. > should i use ''make" command for those changes to work or any other > command after performing the changes ? > > > > You can run `ossec-logtest -t` to test your changes before reatarting > ossec. If there are issues, it should display error messages. > > >> > > On Monday, August 21, 2017 at 10:25:45 PM UTC+5:30, dan (ddpbsd) wrote: >> >> >> >> On Aug 21, 2017 12:54 PM, "Ritu Soni" wrote: >> >> hello, >> I have installed OSSEC on UBUNTU server. >> I want to perform changes in OSSEC rules, so that it can detect an attack >> and display an alert like "DDOS Attack". >> Is it possible to perform changes in rules of OSSEC using xml files? >> What could be the possible method for this, please guide me. >> >> >> Local additiona or changes to the rules can be done in >> /var/ossec/rules/local_rules.xml >> >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ossec-list+...@googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ossec-list+...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ossec-list] Re: Testing OSSEC
Hello, My work requirement is that OSSEC should generate an alert " Attack Detected " ,when the request from same ip address is received by the server for 3 or more times within 300 seconds. I have done changes in syslog_rules.xml file: ** *attacks|attack|automatic_attack* *alert_by_email* *DDOS Attack Detected* * * But when i restart OSSEC,it generates an error msg: *OSSEC analysisd: Testing rules failed. Configuration error. Exiting*. Are these changes made correct?if not, please suggest the changes to achieve the same. On Monday, August 21, 2017 at 10:43:53 PM UTC+5:30, dan (ddpbsd) wrote: > > > > On Aug 21, 2017 1:07 PM, "Ritu Soni"> wrote: > > Hey, > When i perform any changes to xml files, ossec stopped working. > should i use ''make" command for those changes to work or any other > command after performing the changes ? > > > > You can run `ossec-logtest -t` to test your changes before reatarting > ossec. If there are issues, it should display error messages. > > >> > > On Monday, August 21, 2017 at 10:25:45 PM UTC+5:30, dan (ddpbsd) wrote: >> >> >> >> On Aug 21, 2017 12:54 PM, "Ritu Soni" wrote: >> >> hello, >> I have installed OSSEC on UBUNTU server. >> I want to perform changes in OSSEC rules, so that it can detect an attack >> and display an alert like "DDOS Attack". >> Is it possible to perform changes in rules of OSSEC using xml files? >> What could be the possible method for this, please guide me. >> >> >> Local additiona or changes to the rules can be done in >> /var/ossec/rules/local_rules.xml >> >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ossec-list+...@googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ossec-list+...@googlegroups.com . > For more options, visit https://groups.google.com/d/optout. > > > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.