Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Sguil: disable DNS lookups in pcap transcripts #905

Closed
dougburks opened this issue Apr 26, 2016 · 3 comments
Closed

Sguil: disable DNS lookups in pcap transcripts #905

dougburks opened this issue Apr 26, 2016 · 3 comments

Comments

@dougburks
Copy link
Contributor

No description provided.

@dougburks dougburks changed the title Sguil: DNS lookups in pcap transcripts should be disabled or optional Sguil: DNS lookups in pcap transcripts should be disabled Dec 16, 2017
@dougburks dougburks changed the title Sguil: DNS lookups in pcap transcripts should be disabled Sguil: disable DNS lookups in pcap transcripts Dec 16, 2017
@dougburks
Copy link
Contributor Author

dougburks commented Dec 16, 2017

Default to having DNS lookups disabled, but allow the user to enable them by setting the following in /etc/nsm/securityonion/sguild.conf:

set TRANSCRIPT_DNS_LOOKUP 1

To do this, make the following changes to the GenerateXscript and GenerateBroscript functions in /usr/lib/sguild/SguildTranscript.tcl:

add TRANSCRIPT_DNS_LOOKUP to global transInfoArray

if { [info exists TRANSCRIPT_DNS_LOOKUP] && $TRANSCRIPT_DNS_LOOKUP == "1" } {
catch {SendSocket $clientSocketID [list XscriptMainMsg $winName "Src IP:\t\t$srcIP\t([GetHostbyAddr $srcIP])"]}
catch {SendSocket $clientSocketID [list XscriptMainMsg $winName "Dst IP:\t\t$dstIP\t([GetHostbyAddr $dstIP])"]}
} else {
catch {SendSocket $clientSocketID [list XscriptMainMsg $winName "Src IP:\t\t$srcIP"]}
catch {SendSocket $clientSocketID [list XscriptMainMsg $winName "Dst IP:\t\t$dstIP"]}
}

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant