- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
05-31-2018 08:50 AM - edited 05-31-2018 08:51 AM
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
06-07-2018 10:37 AM - edited 06-07-2018 02:44 PM
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>
</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 ...
06-07-2018 10:37 AM - edited 06-07-2018 02:44 PM
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>
</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 ...
06-11-2018 01:17 AM
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
06-11-2018 01:22 AM
Sorry for the split reply.
However, this is not extracting the MD5 of the detected files. Any ideas?
Thanks!
BR,
Petar
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!