Advertisement
Guest User

Untitled

a guest
Oct 11th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. I am using the latest git version - Suricata version 2.1dev (rev dcbbda5). I am using these rules (https://github.com/EmergingThreats/et-luajit-scripts/blob/master/luajit-drop.rules) from https://github.com/EmergingThreats/et-luajit-scripts
  2.  
  3. The build info is :
  4.  
  5. suricata --build-info
  6. This is Suricata version 2.1dev (rev dcbbda5)
  7. Features: PCAP_SET_BUFF LIBPCAP_VERSION_MAJOR=1 AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HAVE_LUA HAVE_LUAJIT HAVE_LIBJANSSON TLS
  8. SIMD support: SSE_4_2 SSE_4_1 SSE_3
  9. Atomic intrisics: 1 2 4 8 16 byte(s)
  10. 64-bits, Little-endian architecture
  11. GCC version 4.8.4, C version 199901
  12. compiled with -fstack-protector
  13. compiled with _FORTIFY_SOURCE=2
  14. L1 cache line size (CLS)=64
  15. thread local storage method: __thread
  16. compiled with LibHTP v0.5.18, linked against LibHTP v0.5.18
  17.  
  18. Suricata Configuration:
  19. AF_PACKET support: yes
  20. PF_RING support: no
  21. NFQueue support: no
  22. NFLOG support: no
  23. IPFW support: no
  24. Netmap support: no
  25. DAG enabled: no
  26. Napatech enabled: no
  27.  
  28. Unix socket enabled: yes
  29. Detection enabled: yes
  30.  
  31. libnss support: yes
  32. libnspr support: yes
  33. libjansson support: yes
  34. Prelude support: no
  35. PCRE jit: yes
  36. LUA support: yes, through luajit
  37. libluajit: yes
  38. libgeoip: yes
  39. Non-bundled htp: no
  40. Old barnyard2 support: no
  41. CUDA enabled: no
  42.  
  43. Suricatasc install: yes
  44.  
  45. Unit tests enabled: no
  46. Debug output enabled: no
  47. Debug validation enabled: no
  48. Profiling enabled: no
  49. Profiling locks enabled: no
  50. Coccinelle / spatch: no
  51.  
  52. Generic build parameters:
  53. Installation prefix: /usr
  54. Configuration directory: /etc/suricata/
  55. Log directory: /var/log/suricata/
  56.  
  57. --prefix /usr
  58. --sysconfdir /etc
  59. --localstatedir /var
  60.  
  61. Host: x86_64-unknown-linux-gnu
  62. Compiler: gcc (exec name) / gcc (real)
  63. GCC Protect enabled: no
  64. GCC march native enabled: yes
  65. GCC Profile enabled: no
  66. Position Independent Executable enabled: no
  67. CFLAGS -g -O2 -march=native
  68. PCAP_CFLAGS -I/usr/include
  69. SECCFLAGS
  70.  
  71. The suricata.yaml setting is :
  72.  
  73. # Lua Output Support - execute lua script to generate alert and event
  74. # output.
  75. # Documented at:
  76. # https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Lua_Output
  77. - lua:
  78. # enabled: no
  79. enabled: yes
  80. #scripts-dir: /etc/suricata/lua-output/
  81. scripts-dir: /etc/suricata/rules/
  82. scripts:
  83. # - script1.lua
  84. # - CVE-2012-1535.lua
  85. # - CVE-2013-0074.lua
  86. # - CVE-2014-4114.lua
  87. # - CVE-2015-1641.lua
  88. # - CVE-2015-1650.lua
  89. # - CVE-2015-1770.lua
  90. # - CVE-2015-2375.lua
  91. # - CVE-2015-2377.lua
  92. # - CVE-2015-2426.lua
  93. # - CVE-2015-3113.lua
  94. # - suri-bh2-abc-jar.lua
  95. # - suri-high-entropy.lua
  96. # - suri-nuclear-url.lua
  97. # - suri-regin.lua
  98. # - suri-reversed-compressed-binary.lua
  99. # - suri-styx-url.lua
  100. # - suri-suspicious-flash2.lua
  101. # - suri-suspicious-jar.lua
  102. # - suri-suspicious-jar2.lua
  103. # - suri-suspicious-pack200jar.lua
  104. # - suri-suspicious-pdf.lua
  105. # - suri-suspicious-vbe.lua
  106. # - suri-xor-binary-detect.lua
  107. # - suri-xor-binary-quick.lua
  108. # - suri-xor-non-zero.lua
  109. # - tls-heartbleed.lua
  110.  
  111. All the captioned lua script dependencies have been solved. All the said lua scripts are placed at /etc/suricata/rules/. When I restart Suricata, I have the following error at /var/log/suricata.log :
  112.  
  113. http://pastebin.com/7PQ4KbsP
  114.  
  115. Meanwhile, when I uncomment the suricata.yaml for the lua scripts at the lua section, the Suricata restart itself in an endless loop condition.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement