The attribute table uses an XML format and consists of two sections, a mapping section, used to reduce the size of the file for common data elements, and the host attribute section. The mapping section is optional.
An example of the file format is shown below.
<SNORT_ATTRIBUTES> <ATTRIBUTE_MAP> <ENTRY> <ID>1</ID> <VALUE>Linux</VALUE> </ENTRY> <ENTRY> <ID>2</ID> <VALUE>ssh</VALUE> </ENTRY> </ATTRIBUTE_MAP> <ATTRIBUTE_TABLE> <HOST> <IP>192.168.1.234</IP> <OPERATING_SYSTEM> <NAME> <ATTRIBUTE_ID>1</ATTRIBUTE_ID> <CONFIDENCE>100</CONFIDENCE> </NAME> <VENDOR> <ATTRIBUTE_VALUE>Red Hat</ATTRIBUTE_VALUE> <CONFIDENCE>99</CONFIDENCE> </VENDOR> <VERSION> <ATTRIBUTE_VALUE>2.6</ATTRIBUTE_VALUE> <CONFIDENCE>98</CONFIDENCE> </VERSION> <FRAG_POLICY>linux</FRAG_POLICY> <STREAM_POLICY>linux</STREAM_POLICY> </OPERATING_SYSTEM> <SERVICES> <SERVICE> <PORT> <ATTRIBUTE_VALUE>22</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </PORT> <IPPROTO> <ATTRIBUTE_VALUE>tcp</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </IPPROTO> <PROTOCOL> <ATTRIBUTE_ID>2</ATTRIBUTE_ID> <CONFIDENCE>100</CONFIDENCE> </PROTOCOL> <APPLICATION> <ATTRIBUTE_VALUE>OpenSSH</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> <VERSION> <ATTRIBUTE_VALUE>3.9p1</ATTRIBUTE_VALUE> <CONFIDENCE>93</CONFIDENCE> </VERSION> </APPLICATION> </SERVICE> <SERVICE> <PORT> <ATTRIBUTE_VALUE>2300</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </PORT> <IPPROTO> <ATTRIBUTE_VALUE>tcp</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </IPPROTO> <PROTOCOL> <ATTRIBUTE_VALUE>telnet</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </PROTOCOL> <APPLICATION> <ATTRIBUTE_VALUE>telnet</ATTRIBUTE_VALUE> <CONFIDENCE>50</CONFIDENCE> </APPLICATION> </SERVICE> </SERVICES> <CLIENTS> <CLIENT> <IPPROTO> <ATTRIBUTE_VALUE>tcp</ATTRIBUTE_VALUE> <CONFIDENCE>100</CONFIDENCE> </IPPROTO> <PROTOCOL> <ATTRIBUTE_VALUE>http</ATTRIBUTE_VALUE> <CONFIDENCE>91</CONFIDENCE> </PROTOCOL> <APPLICATION> <ATTRIBUTE_VALUE>IE Http Browser</ATTRIBUTE_VALUE> <CONFIDENCE>90</CONFIDENCE> <VERSION> <ATTRIBUTE_VALUE>6.0</ATTRIBUTE_VALUE> <CONFIDENCE>89</CONFIDENCE> </VERSION> </APPLICATION> </CLIENT> </CLIENTS> </HOST> </ATTRIBUTE_TABLE> </SNORT_ATTRIBUTES>
Note:
With Snort 2.8.1, for a given host entry, the stream and IP frag information are both used. Of the service attributes, only the IP protocol (tcp, udp, etc), port, and protocol (http, ssh, etc) are used. The application and version for a given service attribute, and any client attributes are ignored. They may be used in a future release.
|
A DTD for verification of the Host Attribute Table XML file is provided with the snort packages.
The confidence metric may be used to indicate the validity of a given service or client application and its respective elements. That field is not currently used by Snort, but may be in future releases.