Splunk SOAR (f.k.a. Phantom)

Why am I getting an error when using the Send to Phantom alert action?

rplas
Explorer

Splunk Version: 7.1.2
Phantom App for Splunk Version: 2.5.23

My alerts are being triggered successfully, but there is an error sending to Phantom.

In /opt/splunk/var/log/splunk/phantom_forwarding.log I get the following line:

phantom_forward:109 - /opt/splunk/etc/apps/phantom/bin/scripts/phantom_forward.py called without the correct set of parameters.

and the lines of code in question are:

if len(sys.argv) < 9:
    logger = PhantomConfig.get_logger('forwarding')
    logger.error('{} called without the correct set of parameters.'.format(sys.argv[0]))
    sys.exit(0)

With some digging I've determined that sys.argv in this case is an array with one item which is the name of the file.

I'm wondering if this is caused by an error on my part (misconfigured alert?) or maybe a bug in the Phantom app code.

Labels (2)

AustinKidd
New Member

Hi, sorry I don't have a full answer, but hopefully this helps you along in your search. I was digging into this problem myself in a lab and realized that my alert action was doing fine (in fact, I'm pretty sure the alert action doesn't call the phantom_forward.py script). Looking at the code in the app, phantom_forward actually gets called through the restmap.conf (via phantom_rest), so I'd guess Phantom is trying to reach out to that rest endpoint with the wrong parameters, but I'm not sure where that's set up. In the lab I'm in, I'm seeing it happen once a minute.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...