<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Yara Rules error in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535507#M1930</link>
    <description>&lt;P&gt;I think the issue here is the arguments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The yaraRule parameter is supposed to be a raw YARA rule, and the entryIDs parameter is a list of files to evaluate with the yara rule. (ie, the files which may or may not match a rule) In normal usage I wouldn't expect any of the entryIDs to be a .yar file, and the rule name on it's own will not compile as a valid yara rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to use arbitrary rules inside yar files you'll need to read the data from the yar file first, then pass it to YaraScan eg with a wrapper script.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 00:20:07 GMT</pubDate>
    <dc:creator>chrking</dc:creator>
    <dc:date>2023-03-23T00:20:07Z</dc:date>
    <item>
      <title>Yara Rules error</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535231#M1920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to use yarascan automation from yara pack on marketplace, always receiving "HasMatch: false"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here it goes the printscreen with the command and the contextdata showing the entryid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FabioFerreira_0-1679411632399.png" style="width: 764px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48924i7F64BE36966BD7BE/image-dimensions/764x188/is-moderation-mode/true?v=v2" width="764" height="188" role="button" title="FabioFerreira_0-1679411632399.png" alt="FabioFerreira_0-1679411632399.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The content has that rule&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FabioFerreira_1-1679411743582.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48925i58044E03C4EBB5DB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FabioFerreira_1-1679411743582.png" alt="FabioFerreira_1-1679411743582.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Fábio&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 15:17:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535231#M1920</guid>
      <dc:creator>FabioFerreira</dc:creator>
      <dc:date>2023-03-21T15:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Yara Rules error</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535318#M1922</link>
      <description>&lt;P&gt;In the context I see the yara file, What you are trying to accomplish is scan a file with a YARA rule to figure out if it matches right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try with the below YARA rule. This will come true for any file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;rule match_any_file { &lt;SPAN class="hljs-keyword"&gt;condition&lt;/SPAN&gt;: &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt; }&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works, we'll try to troubleshoot further&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 07:13:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535318#M1922</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2023-03-22T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Yara Rules error</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535382#M1926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed the yara file and added the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FabioFerreira_1-1679482569709.png" style="width: 591px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48948iF4FBE4398D9A239A/image-dimensions/591x127/is-moderation-mode/true?v=v2" width="591" height="127" role="button" title="FabioFerreira_1-1679482569709.png" alt="FabioFerreira_1-1679482569709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And tried again with the same issue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FabioFerreira_2-1679482960134.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48953i84E99E0EDFAEF0C1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FabioFerreira_2-1679482960134.png" alt="FabioFerreira_2-1679482960134.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Fábio Ferreira&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 11:02:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535382#M1926</guid>
      <dc:creator>FabioFerreira</dc:creator>
      <dc:date>2023-03-22T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Yara Rules error</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535507#M1930</link>
      <description>&lt;P&gt;I think the issue here is the arguments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The yaraRule parameter is supposed to be a raw YARA rule, and the entryIDs parameter is a list of files to evaluate with the yara rule. (ie, the files which may or may not match a rule) In normal usage I wouldn't expect any of the entryIDs to be a .yar file, and the rule name on it's own will not compile as a valid yara rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to use arbitrary rules inside yar files you'll need to read the data from the yar file first, then pass it to YaraScan eg with a wrapper script.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 00:20:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/535507#M1930</guid>
      <dc:creator>chrking</dc:creator>
      <dc:date>2023-03-23T00:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Yara Rules error</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/536487#M1942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208030"&gt;@chrking&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Got it.&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Fábio Ferreira&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 20:39:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/yara-rules-error/m-p/536487#M1942</guid>
      <dc:creator>FabioFerreira</dc:creator>
      <dc:date>2023-03-26T20:39:06Z</dc:date>
    </item>
  </channel>
</rss>

