Getting Data In

Universal Forwarder with Sysmon not forwarding Correctly

wuming79
Path Finder

Hi,

I'm trying to study the activities of some Malware thus I created the following environment using virtualbox. But I could not get the forwarder to work correctly. I could only get 1 event when I reboot guest 2. Did I miss out some other configurations?

**

  • Host

**
Disable VirtualBox Host-Only Network so that Guest and Host could not ping each other but Guest can guest to guest.

**

  • Guest 1:

**
IE8WIN7, SP1, IE Version 8.0.7601.17514
Network: Nat Network
IP: 10.0.2.15
Installed Splunk Enterprise
Open port 9998 to receive events (set up at http://localhost:8000/en-US/manager/search/data/inputs/tcp/cooked)
Set Firewall to allow inbound and outbound 10.0.2.4 and port 9998.

**

  • Guest 2:

**
IE8WIN7, SP1, IE Version 8.0.7601.17514
IP: 10.0.2.4
Installed Splunk Universal Forwarder
Install sysmon via CLI "sysmon -i -n -accepteula"
Added the following into universal forwarder input.conf

"[WinEventLog://Microsoft-Windows-Sysmon/Operational]
disabled = false
renderXml = true"

Set Firewall to allow inbound and outbound 10.0.2.15 and port 9998.

I only got 1 event after Guest 2 reboots. After that, no matter what programs I open in Guest 2, there is no events seens from Guest 1.

alt text

0 Karma

Phrack
New Member

Not trying to revive a dead post, however if others are facing the same problem. Check the name of the .conf files created. You listed your files as input.conf and output.conf. The correct file name is input*s.conf and outputs*.conf.

Fix the file name and you probably would have your problem solved.

,Don't want to revive a dead post, however you may have had issues with the names of your .conf files. You listed them as input.conf and output.conf NOT input*s.conf and outputs*.conf

0 Karma

wuming79
Path Finder

Just for record since I didn't find any answers on this subject yet.
The reason why splunk list forward-server was because my cmd was not executed as administration.
When I executed as administrated, I could see my IP and port configured and active.

Now the issue again...so list forward-server listed my ip port as configured and active and I had allow the ports to communicate between the 2 guest, why didn't the data came in?

0 Karma

wuming79
Path Finder

I tried the cmd "splunk list forward-server" in SplunkUniversalForwarder/bin to check the connection, after entering my userId and password, it just came back to DOS and shows nothing. I have another VMWare using vmnet8 adapter and I was able to forward my sysmon out. The cmd "splunk list forward-server" was able to see active connections. What could possibility be the issue? Virtualbox incompatible issue??

alt text

0 Karma

wuming79
Path Finder

I saw the following msg in splunkd.log on guest1.
ERROR ExecProcessor - message from ""C:\Program Files\Splunk\bin\splunk-winevtlog.exe"" splunk-winevtlog - WinEventMon::configure: Failed to find Event Log with channel name='Microsoft-Windows-Sysmon/Operational'

Does this mean guest2 has forworded something over to guest1 but still can't find event log?

0 Karma

wuming79
Path Finder

Do I just need to set allow TCP port 9997 (local and remote) in outbound rule in guest 1 and set allow TCP port 9997 (local and remote) in outbound rule in guest 2?
Do I actually need to set allow IP 10.0.2.4 (local and remote) in outbound rule in Guest 1 and set allow IP 10.0.2.15 (local and remote) in outbound rule in Guest 2?

0 Karma

hardikJsheth
Motivator

You are sending data from Guest 2 to Guest 1 on 9997. You need to enable inbound traffic on guest 1 for port 9997 and outbound traffic on guest 2 to 9997.

0 Karma

wuming79
Path Finder

Hi, I tried enable inbound traffic on guest 1 for port 9997 TCP and UDP and outbound traffic on guest 2 to 9997 TCP and UDP but still no data..

0 Karma

wuming79
Path Finder

I have uninstall and reinstall universal forwarder without indicating deployment server and receiving information.
I then tried to follow the instructions at https://answers.splunk.com/answers/126122/no-available-server-list-on-opt-splunkforwarder-bin-splunk...

I went to check my Guest 1, and still nothing from Guest B... I reboot Guest B and it seems that I have also lost the initial event that I saw previously (in first post).

I went to check C:\Program Files\SplunkUniversalForwarder\etc\system\local
my input.conf and output.conf are as below:

input.conf

[default]
host = IE8Win7

[WinEventLog://Microsoft-Windows-Sysmon/Operational]
disabled = false
renderXml = true

output.conf

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = 10.0.2.4:9997
0 Karma

wuming79
Path Finder

Hi hardikJsheth,

My guest 1 was configured to listen on port 9997. Do I need to do anything on "Configure Forwarding"?

alt text

My guest 2 universal forwarder output.conf default with the following:

[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = 10.0.2.4:9997

[tcpout-server://10.0.2.4:9997]

I just appended the following below:

 [tcpout:eis_clustered_indexers]
 [tcpout-server://10.0.2.4:9998]

Results: No results.

0 Karma

hardikJsheth
Motivator

What you need to do is enable receiving on your guest 1. For login to Guest 1 splunk web ui, go to Settings --> Forwarding And Receiving and configure receiving.

On Guest 2 where you have installed universal forwarder, add outputs.conf entry to enable UF to forward data to Splunk Enterprise server.

[tcpout:eis_clustered_indexers]
server = ip_address:port
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...