|
NAMEsuper_table_creator - MySQL Database Schema Creator for super_mediatorSYNOPSISsuper_table_creator [--out MYSQL_DB_HOSTNAME] [--name MYSQL_USER_NAME] [--pass MYSQL_PASSWORD] [--database DATABASE_NAME] [--version] [--flow-only] [--no-index] [--dns-dedup] [--dedup-last-seen] [--flow-stats] [--yaf-stats] [--dedupflow] [--dedup TABLE_NAME] [--ssl-certs] [--ssl-dedup] DESCRIPTIONsuper_table_creator creates the MySQL database tables for use with super_mediator TEXT Exporters. super_mediator exports deep packet inspection and flow information to CSV Files. CSV files can be imported into databases using tools such as mysqlimport.OPTIONSThe following options configure where super_table_creator creates database tables and which tables to create.
column name | size | description stime | DATETIME | flow start time etime | DATETIME | flow end time duration | DECIMAL(10,3) | duration rtt | DECIMAL(10, 3) | round trip time protocol | TINYINT | flow protocol sip | VARCHAR(40) | source IP address sport | MEDIUMINT | source port pkt | BIGINT | packetTotalCount oct | BIGINT | octetTotalCount att | MEDIUMINT | flow attributes mac | VARCHAR(18) | source MAC Address dip | VARCHAR(40) | destination IP Address dport | MEDIUMINT | destination Transport Port rpkt | BIGINT | reversePacketTotalCount roct | BIGINT | reverseOctetTotalCount ratt | MEDIUMINT | reverse flow attributes rmac | VARCHAR(18) | destination MAC Address iflags | VARCHAR(10) | initial TCP Flags uflags | VARCHAR(10) | union TCP Flags isn | VARCHAR(10) | initial sequence number (hex) risn | VARCHAR(10) | reverse initial sequence number (hex) vlan | VARCHAR(3) | vlan ID (hex) app | MEDIUMINT | application label ent | INT | entropy rent | INT | reverse entropy reason | VARCHAR(10) | flow end reason
column name | size | description stime | DATETIME | flow start milliseconds sip | VARCHAR(40) | source IP address dip | VARCHAR(40) | destination IP Address sport | MEDIUMINT | source Transport port dport | MEDIUMINT | destination transport port vlan | INT | vlan ID obid | INT | observation ID of the flow sensor
column name | size | description first_seen | DATETIME | flow start time DNS Record was first seen. rrtype | MEDIUMINT | type of resource record (A, NS, CNAME, etc.) rrname | VARCHAR(270) | domain name found in RNAME in Resource Record rrval | VARCHAR(300) | RDATA in Resource Record
column name | size | description first_seen | DATETIME | flow start time DNS Record was first seen. last_seen | DATETIME | flow start time of last record seen before export rrtype | MEDIUMINT | type of resource record (A, NS, CNAME, etc.) rrname | VARCHAR(270) | domain name found in RNAME in Resource Record hitcount | INT | number of records seen between first_seen and last_seen. rrval | VARCHAR(300) | RDATA in Resource Record
column name | size | description flow_key | INT | flow key hash stime | BIGINT | flow start time obid | INT | observation ID tcpurg | BIGINT | number of packets with the TCP urgent flag set. smallpkt | BIGINT | number of packets that are smaller than 60 bytes nonempty | BIGINT | number of packets with a non-zero payload datalen | BIGINT | total payload byte count avgitime | BIGINT | average interarrival time firstpktlen | INT | length of first non-zero payload largepktct | BIGINT | number of packets that were larger than 220 bytes maxpktsize | INT | largest payload length transferred in the flow. firsteight | SMALLINT | Directionality for the first 8 non-empty packets stddevlen | BIGINT | standard deviation of payload length stddevtime | BIGINT | standard deviation of interarrival time avgdata | BIGINT | average payload length in forward direction revtcpurg | BIGINT | number of packets with the TCP urgent flag set. revsmallpkt | BIGINT | number of packets that are smaller than 60 bytes revnonempty | BIGINT | number of packets with a non-zero payload revdatalen | BIGINT | total payload byte count revavgitime | BIGINT | average interarrival time revfirstpktlen | INT | length of first non-zero payload revlargepktct | BIGINT | number of packets that were larger than 220 bytes revmaxpktsize | INT | largest payload length transferred in the flow. revstddevlen | BIGINT | standard deviation of payload length revstddevtime | BIGINT | standard deviation of interarrival time revavgdata | BIGINT | average payload length in reverse direction
column name | size | description ts | TIMESTAMP | auto insert the current time flows | BIGINT | total exported flow count packets | BIGINT | total exported packet count dropped | BIGINT | total packets dropped by yaf ignored | BIGINT | total packets ignored due to improper headers expired_frags | BIGINT | total fragments expired assembled_frags | BIGINT | total fragments assembled flush_events | INT | number of times flow table flushed table_peak | INT | max. number of flows in flow table yaf_ip | VARCHAR | exporter IP address yaf_id | INT | observation domain of exporter flow_rate | INT | mean flow rate packet_rate | INT | mean packet rate
column name | size | description first_seen | DATETIME | first time ip, data tuple was seen last_seen | DATETIME | last time ip, data tuple was seen ip | VARCHAR(40) | src or dst ipv4 or ipv6 address hash | INT | flow key hash of last flow with ip, data tuple hitcount | BIGINT | number of times ip, data tuple was seen data | VARCHAR(500) | data that corresponds with configured info element ID
column name | size | description serial | VARCHAR(150) | serial number of X.509 Certificate issuer | VARCHAR(500) | Issuer's common name in X.509 Certificate stime | DATETIME | first time certificate was seen id | INT | the object/member ID of the data ISE | VARCHAR(2) | Issuer(I), Subject(S), Extension(E) cert_no | SMALLINT | Order in certificate chain data | VARCHAR(500) | data that corresponds with id The certs_dedup table will have the following schema: column name | size | description first_seen | DATETIME | first time ip, data tuple was seen last_seen | DATETIME | last time ip, data tuple was seen serial | VARCHAR(150) | serial number of X.509 Certificate hitcount | BIGINT | number of times ip, data tuple was seen issuer | VARCHAR(500) | Issuer's common name in X.509 Certificate
column name | size | description first_seen | DATETIME | first time ip, cert chain was seen last_seen | DATETIME | last time ip, cert chain was seen ip | VARCHAR(40) | src or dst ipv4 or ipv6 address hash | INT | flow key hash of last flow with ip, cert chain tuple hitcount | BIGINT | number of times ip, cert chain was seen serial1 | VARCHAR(150) | serial number of End-user certificate issuer1 | VARCHAR(500) | Issuer's common name of End-user Certificate serial2 | VARCHAR(150) | serial number of Intermediate/Root CA certificate issuer2 | VARCHAR(500) | Issuer's common name of Intermediate/Root CA Certificate DPI TablesFlow Index TableUnless --no-index is present, the following flow table will be created: column name | size | description flow_key | INT | flow key hash stime | BIGINT | flow start milliseconds sip | VARCHAR(40) | source IP address dip | VARCHAR(40) | destination IP Address protocol | TINYINT | flow protocol sport | MEDIUMINT | source transport port dport | MEDIUMINT | destination transport port vlan | INT | vlan ID obid | INT | observation ID of flow sensor Together the flow key, stime, and obid will create a primary key to join with other tables. DNS column name | size | description flow_key | INT | flow key hash stime | BIGINT | flow start milliseconds obid | INT | observation ID of flow sensor qr | VARCHAR(1) | Query (Q) or Response (R) id | INT | query or response ID section | TINYINT | section of DNS Packet nx | TINYINT | NXDomain (1) or Not (0) auth | TINYINT | Authoritative Response (1) or Not (0) type | MEDIUMINT | Resource Record Type (1,2,5,6,..) ttl | INT | Time to Live name | VARCHAR(255) | domain name from RRNAME val | VARCHAR(255) | resource record data from RRDATA. TLS The X.509 Certificate table has the following format: column name | size | description flow_key | INT | flow key hash stime | BIGINT | flow start milliseconds obid | INT | observation ID of flow sensor id | MEDIUMINT | information element ID cert_type | VARCHAR(5) | Subject (S) or Issuer (I) cert_no | TINYINT | order in certificate chain data | VARCHAR(500) | X.509 Cert Value. HTTP, IMAP, SLP, SMTP, POP3, IRC, FTP, TFTP, SIP, RTSP, MySQL, p0f, DHCP, SSH, NNTP, These tables all have the same format: column name | size | description flow_key | INT | flow key hash stime | BIGINT | flow start milliseconds obid | INT | observation ID of flow sensor id | MEDIUMINT | information element ID count* | INT | hit count *optional (--dedupflow) data | VARCHAR(500) | data ExamplesIn the following examples, the dollar sign ("$") represents the shell prompt. The text after the dollar sign represents the command line. Lines have been wrapped for improved readability, and the back slash ("\") is used to indicate a wrapped line.$ super_table_creator --name dbadmin --password jkab7$3 \
--database my_flows --flow-only
Known IssuesBug reports may be sent directly to the Network Situational Awareness team at <netsa-help@cert.org>.AUTHORSEmily Sarneso and the CERT Network Situational Awareness Group Engineering Team, <http://www.cert.org/netsa>.SEE ALSOyaf(1)
Visit the GSP FreeBSD Man Page Interface. |