[Oisf-devel] smb parser question

jason taylor jtfas90 at gmail.com
Mon Jul 2 12:54:12 UTC 2018

Hi All,

I am looking at some smb traffic with the smb parser enabled from the
latest/today master branch build and I am not seeing some of the data
parsed out.

I was hoping/expecting the smb/trans response/status would be parsed
out (STATUS_INSUFF_SERVER_RESOURCES). I am not sure if this is a bug or  items still being implemented.

I have attached the pcap, build info and output.

Thanks for any feedback!

-------------- next part --------------
suricata build-info:
This is Suricata version 4.1.0-dev (rev 3c6e335f)
SIMD support: SSE_4_2 SSE_4_1 SSE_3 
Atomic intrisics: 1 2 4 8 16 byte(s)
64-bits, Little-endian architecture
GCC version 7.3.1 20180303 (Red Hat 7.3.1-5), C version 199901
compiled with -fstack-protector
compiled with _FORTIFY_SOURCE=2
L1 cache line size (CLS)=64
thread local storage method: __thread
compiled with LibHTP v0.5.26, linked against LibHTP v0.5.26

Suricata Configuration:
  AF_PACKET support:                       yes
  eBPF support:                            no
  XDP support:                             
  PF_RING support:                         no
  NFQueue support:                         yes
  NFLOG support:                           no
  IPFW support:                            no
  Netmap support:                          no
  DAG enabled:                             no
  Napatech enabled:                        no
  WinDivert enabled:                       no

  Unix socket enabled:                     yes
  Detection enabled:                       yes

  Libmagic support:                        yes
  libnss support:                          yes
  libnspr support:                         yes
  libjansson support:                      yes
  liblzma support:                         yes
  hiredis support:                         no
  hiredis async with libevent:             no
  Prelude support:                         no
  PCRE jit:                                yes
  LUA support:                             yes
  libluajit:                               no
  libgeoip:                                yes
  Non-bundled htp:                         no
  Old barnyard2 support:                   no
  Hyperscan support:                       yes
  Libnet support:                          yes
  liblz4 support:                          no

  Rust support (experimental):             yes
  Rust strict mode:                        no
  Rust debug mode:                         yes

  Suricatasc install:                      yes

  Profiling enabled:                       no
  Profiling locks enabled:                 no

Development settings:
  Coccinelle / spatch:                     no
  Unit tests enabled:                      no
  Debug output enabled:                    yes
  Debug validation enabled:                no

Generic build parameters:
  Installation prefix:                     /usr/local
  Configuration directory:                 /usr/local/etc/suricata/
  Log directory:                           /usr/local/var/log/suricata/

  --prefix                                 /usr/local
  --sysconfdir                             /usr/local/etc
  --localstatedir                          /usr/local/var

  Host:                                    x86_64-pc-linux-gnu
  Compiler:                                gcc (exec name) / gcc (real)
  GCC Protect enabled:                     yes
  GCC march native enabled:                yes
  GCC Profile enabled:                     no
  Position Independent Executable enabled: yes
  CFLAGS                                   -g -O2 -march=native -I${srcdir}/../rust/gen/c-headers
  SECCFLAGS                                -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security

smb eve json:
{"timestamp":"2018-03-07T23:43:19.636131-0500","flow_id":969892725966023,"pcap_cnt":7,"event_type":"smb","src_ip":"","src_port":59678,"dest_ip":"","dest_port":445,"proto":"TCP","smb":{"id":1,"dialect":"NT LM 0.12","command":"SMB1_COMMAND_NEGOTIATE_PROTOCOL","status":"UNKNOWN_00_0000","status_code":"0x0000","session_id":0,"tree_id":0,"request_done":true,"response_done":true,"client_dialects":["LANMAN1.0","LM1.2X002","NT LANMAN 1.0","NT LM 0.12"],"server_guid":"bdd13d4d-47e1-4365-758a-4b694d3adf07"}}
{"timestamp":"2018-03-07T23:43:20.103482-0500","flow_id":969892725966023,"pcap_cnt":10,"event_type":"smb","src_ip":"","src_port":59678,"dest_ip":"","dest_port":445,"proto":"TCP","smb":{"id":2,"dialect":"NT LM 0.12","command":"SMB1_COMMAND_SESSION_SETUP_ANDX","status":"UNKNOWN_00_0000","status_code":"0x0000","session_id":2048,"tree_id":0,"request_done":true,"response_done":true,"request":{"native_os":"&","native_lm":""},"response":{"native_os":"Windows 7 Enterprise 7601 Service Pack 1","native_lm":"Windows 7 Enterprise 6.1"}}}
{"timestamp":"2018-03-07T23:43:20.600492-0500","flow_id":969892725966023,"pcap_cnt":13,"event_type":"smb","src_ip":"","src_port":59678,"dest_ip":"","dest_port":445,"proto":"TCP","smb":{"id":3,"dialect":"NT LM 0.12","command":"SMB1_COMMAND_TREE_CONNECT_ANDX","status":"UNKNOWN_00_0000","status_code":"0x0000","session_id":2048,"tree_id":2048,"request_done":true,"response_done":true,"named_pipe":"\\\\IPC$","service":{"request":"?????","response":"IPC"}}}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eb.sample.pcap
Type: application/vnd.tcpdump.pcap
Size: 2133 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20180702/c3232e61/attachment.pcap>

More information about the Oisf-devel mailing list