Mats Klepsland
03c8b82bfe
tls-log: quick code cleanup
7 years ago
Mats Klepsland
a151fe2225
tls-log: remove a wrongful comment
...
The app-layer parser for TLS has been TX aware for quite some time.
Remove a comment that is stating that it is not.
7 years ago
Mats Klepsland
85536e8918
tls-log: fix so buffer is reset on custom logging
...
Move MemBufferReset() so it also works when using custom tls
logging. This avoids duplicate tls log entries.
Bug #3177
7 years ago
Philippe Antoine
af4f816204
http: sets compression bomb limit
7 years ago
Philippe Antoine
c09ad01836
http: disable lzma decompression from configuration
7 years ago
Philippe Antoine
94aa36df1b
lzma: replaces liblzma with own sdk for swf decompression
...
so as to avoid memory exhaustion
7 years ago
Yujie Zhao
a121c7b460
Avoid to shutdown NSS if it is not initialized
7 years ago
Jason Ish
178d420f36
main: enable coredumps after privileges are dropped
...
On Linux, by default, coredumps are disabled after
privileges are dropped. This re-enables coredumps
after privileges are dropped.
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/1271
Credit to Elazar Broad for the pull request:
https://github.com/OISF/suricata/pull/3362
7 years ago
Jeff Lucovsky
bd691778eb
rust/ftp: add parser for active mode port handling
7 years ago
Jeff Lucovsky
b4070b6dcd
ftp: Use rust parsers to parse dynamic ports
7 years ago
Philippe Antoine
9cbf9ef7a4
HTTP new parser warning for Ambiguous C-L
7 years ago
Shivani Bhardwaj
d801c3e588
detect: Make keyword description consistent
...
Closes redmine ticket #3137 .
7 years ago
Victor Julien
d4bc460381
smtp: fix file_data inspection
...
Continue tracking data if API is used with detect. Detection engine
then manages the tracking.
Bug #2395 .
7 years ago
Victor Julien
8765839084
sip: disable output by default
7 years ago
Jason Ish
517ecd68a9
sip: rustfmt
...
As this is new Rust code, format with rustfmt using default
styling.
7 years ago
Jason Ish
a45a2fa1fc
sip: disable by default in 5.0
7 years ago
Jason Ish
fdbc2fe49c
sip rust fixup: remove unused import in tests
7 years ago
Jason Ish
afe065c7ac
sip fixup: _Bool -> bool
7 years ago
Giuseppe Longo
dd5d0afd79
doc: add SIP keywords
7 years ago
Giuseppe Longo
e06291922f
detect/sip.response_line: add sticky buffer
...
Matches on response line field in SIP.
7 years ago
Giuseppe Longo
17de4a8023
detect/sip.request_line: add sticky buffer
...
Matches on request line field in SIP.
7 years ago
Giuseppe Longo
8939ece538
detect/sip.stat_msg: add sticky buffer
...
Matches on status msg field in SIP.
7 years ago
Giuseppe Longo
bd2219cac6
detect/sip.stat_code: add sticky buffer
...
Matches on status code field in SIP.
7 years ago
Giuseppe Longo
8454122eb2
detect/sip.protocol: add sticky buffer
...
Matches on protocol field in SIP.
7 years ago
Giuseppe Longo
2661c5b298
detect/sip.uri: add sticky buffer
...
Matches on uri field in SIP.
7 years ago
Giuseppe Longo
424eead8c0
detect/sip.method: add sticky buffer
...
Matches on uri field in SIP.
7 years ago
Giuseppe Longo
c88559dc72
output/json-alert: add sip metadata
...
Put SIP information to alert event.
7 years ago
Giuseppe Longo
edc2a583a9
rust/sip: add SIP logger
7 years ago
Giuseppe Longo
2e975a0481
rust/sip: add parser for SIP protocol
7 years ago
Victor Julien
a2356a89f7
detect/dns.opcode: improve error reporting
7 years ago
Jason Ish
d3e2cc9926
doc: document dns.opcode keyword
7 years ago
Jason Ish
daed788d49
doc: Replace dns_query with dns.query.
7 years ago
Jason Ish
d79c23baa3
dns/detect: dns.opcode keyword
...
Add a rule keyword, dns.opcode to match on the opcode flag
found in the DNS request and response headers.
Only exact matches are allowed with negation.
Examples:
- dns.opcode:4;
- dns.opcode:!1;
7 years ago
Victor Julien
c68fbfcfe6
htp: simplify depth check
7 years ago
Giuseppe Longo
972be0a560
doc: update file-extraction section
7 years ago
Giuseppe Longo
de904db830
app-layer-htp: use stream depth with filestore
...
This permits to use stream-depth value set for file-store.
Currently if a file is being stored and hits a limit,
such as request or response body, it will be truncated
although file-store.stream-depth is enabled but the file should be
closed and not truncated.
Two unit tests have been added to verify that:
- a file is stored correctly
- chunk's length computation doesn’t cause an underflow
7 years ago
Giuseppe Longo
ed5a439b8e
app-layer-parser: flag a tx to use stream depth
...
This adds a new API that permit to set the stream-depth
file for file-storing when a rule with filestore keyword is matched.
7 years ago
Shivani Bhardwaj
b5b429c288
detect: Add missing keyword URLs and description
...
Add missing keyword URLs and their description. Fix the ones that
were incorrect.
Partially closes redmine ticket #2974 .
7 years ago
Jack Mott
adcd7ce0ff
classification: add command-and-control classtype
...
Added new classtype 'command-and-control' to be used with more
general TROJAN/MALWARE categories to designate traffic between
infected machine and c2 server.
7 years ago
Travis Green
798d874662
doc: fix whitespace
7 years ago
Travis Green
08423282aa
doc: add to sigmatch_table
7 years ago
Travis Green
4612d4b50a
detect: syntax regex logic update
...
Updated regex logic to include more spaces. Fixed spelling.
7 years ago
Jason Ish
4111272c88
config/anomaly: use enabled key word; cleanups
...
The anomaly section was commented out, but the types sub object
was not, which then attached the types keyword to the previous
object.
Instead keep "anomaly" enabled in the yaml (not commented out)
and use the "enabled: no" to have it disabled by default.
Additonally reformat the comments to be better viewed in 80
columns.
7 years ago
Mats Klepsland
e976d8cf74
output-lua: register app-layer parser logger for SSH
...
Bug #3162
7 years ago
Mats Klepsland
1e9f767deb
output-lua: register app-layer parser logger for TLS
...
Bug #3162
7 years ago
Jason Ish
61a6eaf330
htp/lzma: set limit from configuration
...
Also use a default defined in Suricata, not libhtp.
7 years ago
Victor Julien
c9c23d5cda
htp: set lzma memlimit from config
7 years ago
Victor Julien
6aa2d550a1
doc/dotprefix: fix example rules
7 years ago
Jeff Lucovsky
ab3d6328ba
detect/transform: add dotprefix keyword to doc
7 years ago
Jeff Lucovsky
7808b946e3
detect/transform: add dotprefix keyword
7 years ago