Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

MineMeld for importing STIX XML files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

MineMeld for importing STIX XML files

L1 Bithead

Hey guys,

 

I hope you are all doing great.

Its my first touch to both STIX XML files and MindMeld, so I was hoping to get a shed of light with at least if it is possible?

 

I am trying to find a way to import manually a STIX file (which I have attached) to the MindMeld so that it can feed my VM-100 FWs, is that possible and how can I accomplish it?

Thanks in advance for your awesomeness!

Best regards,
Petar

1 accepted solution

Accepted Solutions

L5 Sessionator

Hi @Vladimir_S,

 

how often do you need to feed such a file content to MineMeld?

 

I'd suggest pipelining it through a xslt transformation to extract the indicators and the push the result to MineMeld using its localDB miner API.

 

For example, the following XSLT file extract the indicators in the file you just shared.

 

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:AddressObj="http://cybox.mitre.org/objects#AddressObject-2"
	xmlns:indicator="http://stix.mitre.org/Indicator-2"
	xmlns:stix="http://stix.mitre.org/stix-1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<xsl:output method="text" omit-xml-declaration="yes" />

<xsl:template match="//stix:Indicator/indicator:Observable//AddressObj:Address_Value">
<xsl:value-of select="." />
    <xsl:text>&#xa;</xsl:text>
</xsl:template>

<xsl:template match="node()|@*">
  <xsl:apply-templates select="node()|@*"/>
</xsl:template>

</xsl:stylesheet>

Pipeline example:

 

xhoms$ cat TA18-149A.stix.xml | xsltproc stixx_address.xslt -
181.1.253.234
200.82.62.24
81.243.151.226
81.247.219.196
138.204.211.197
...

 

 

View solution in original post

3 REPLIES 3

L5 Sessionator

Hi @Vladimir_S,

 

how often do you need to feed such a file content to MineMeld?

 

I'd suggest pipelining it through a xslt transformation to extract the indicators and the push the result to MineMeld using its localDB miner API.

 

For example, the following XSLT file extract the indicators in the file you just shared.

 

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:AddressObj="http://cybox.mitre.org/objects#AddressObject-2"
	xmlns:indicator="http://stix.mitre.org/Indicator-2"
	xmlns:stix="http://stix.mitre.org/stix-1"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<xsl:output method="text" omit-xml-declaration="yes" />

<xsl:template match="//stix:Indicator/indicator:Observable//AddressObj:Address_Value">
<xsl:value-of select="." />
    <xsl:text>&#xa;</xsl:text>
</xsl:template>

<xsl:template match="node()|@*">
  <xsl:apply-templates select="node()|@*"/>
</xsl:template>

</xsl:stylesheet>

Pipeline example:

 

xhoms$ cat TA18-149A.stix.xml | xsltproc stixx_address.xslt -
181.1.253.234
200.82.62.24
81.243.151.226
81.247.219.196
138.204.211.197
...

 

 

Hey @xhoms,

 

Really appreciate the help!

 

Can you provide me instructions how to pipeline it through a xslt transformation to extract the indicators and the push the result to MineMeld using its localDB miner API?

Sorry for the pain-in-the-arse, but I am really kinda new to this method of feed.

 

Thanks in advance.

 

Best regards,

Petar Trifonov

Sorry for the split reply.

 

However, this is not extracting the MD5 of the detected files. Any ideas?

 

Thanks!

 

 

BR,

Petar

  • 1 accepted solution
  • 5741 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!