<?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: Expedition BPA customise or disable some checks associated to the diffe in Expedition Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343284#M2853</link>
    <description>&lt;P&gt;If that's the case where can I find a list of all benchmarks/controls that Expedition BPA compare ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After analysing py best_practice_assessment_ngfw_pano-master.zip under /html/OS/BPA i have noticed that you can add new&amp;nbsp;best practice checks by updating file "analyzers/best_practices/check_config.json" and these check IDs has been hardcoded into the Analyzer classes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of BPA check ID 3::&lt;/P&gt;
&lt;P&gt;"3":&lt;BR /&gt;{&lt;BR /&gt;"check_id": 3,&lt;BR /&gt;"check_name": "Description Populated",&lt;BR /&gt;"check_type": "Warning"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way you can add new BPA controls by using this method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found&amp;nbsp;benchmarks/controls are loaded from below location and some reference are to CSV file located on '/libs/best_practice_assessment/bpat_documentation.csv'. I was able to find contents/benchmarks.xml, but not the CSV file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you able to explain how BPA process is pulling all&amp;nbsp;benchmarks ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/html/libs/common/bestpractices/loadXML.php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# LOAD Benchmark&lt;BR /&gt;if (file_exists(INC_ROOT.'/contents/benchmarks.xml')){&lt;BR /&gt;$xml = simplexml_load_file(INC_ROOT.'/contents/benchmarks.xml');&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks_topics;");&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks;");&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks;");&lt;BR /&gt;$benchmark_version=$xml-&amp;gt;attributes()-&amp;gt;version;&lt;BR /&gt;$benchmark_date=$xml-&amp;gt;attributes()-&amp;gt;date;&lt;BR /&gt;$checks=array();&lt;BR /&gt;$tests=array();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/html/libs/common/bestpractices/bpat.php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function load_csv_description(){&lt;BR /&gt;$description=false;&lt;/P&gt;
&lt;P&gt;if (file_exists(INC_ROOT.'/libs/best_practice_assessment/bpat_documentation.csv')){&lt;BR /&gt;ini_set('auto_detect_line_endings',TRUE);&lt;BR /&gt;$handle = fopen(INC_ROOT.'/libs/best_practice_assessment/bpat_documentation.csv','r');&lt;BR /&gt;$description=array();&lt;BR /&gt;while ( ($data = fgetcsv($handle,0,';') ) !== FALSE ) {&lt;BR /&gt;$description[$data[0]]['title']=$data[4];&lt;BR /&gt;$description[$data[0]]['description']=$data[6];&lt;BR /&gt;}&lt;BR /&gt;ini_set('auto_detect_line_endings',FALSE);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return $description;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 13:57:57 GMT</pubDate>
    <dc:creator>Yasiru</dc:creator>
    <dc:date>2020-08-11T13:57:57Z</dc:date>
    <item>
      <title>Expedition BPA customise or disable some checks associated to the different</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343261#M2851</link>
      <description>&lt;P&gt;Can someone please let me know how I can customise or disable some&amp;nbsp;&lt;SPAN&gt;checks associated to the &lt;/SPAN&gt;different topics’s (Device, Objects, Policies, Network) under BPA in Expedition.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a centralised BPA definition file(csv,XML) that can be updated so&amp;nbsp;&lt;SPAN&gt;Expedition Project BPA report will Get exclude?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 12:01:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343261#M2851</guid>
      <dc:creator>Yasiru</dc:creator>
      <dc:date>2020-08-11T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expedition BPA customise or disable some checks associated to the diffe</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343275#M2852</link>
      <description>&lt;P&gt;This is not actually possible.&lt;/P&gt;
&lt;P&gt;The BPA checks are performed as a single pack, and the results are also presented as a group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have not implemented any process to disable specific checks as the results are mean to provide visibility on aspects that are not following the recommended Palo Alto Networks settings, therefore called Best Practices.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 13:19:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343275#M2852</guid>
      <dc:creator>dgildelaig</dc:creator>
      <dc:date>2020-08-11T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expedition BPA customise or disable some checks associated to the diffe</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343284#M2853</link>
      <description>&lt;P&gt;If that's the case where can I find a list of all benchmarks/controls that Expedition BPA compare ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After analysing py best_practice_assessment_ngfw_pano-master.zip under /html/OS/BPA i have noticed that you can add new&amp;nbsp;best practice checks by updating file "analyzers/best_practices/check_config.json" and these check IDs has been hardcoded into the Analyzer classes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of BPA check ID 3::&lt;/P&gt;
&lt;P&gt;"3":&lt;BR /&gt;{&lt;BR /&gt;"check_id": 3,&lt;BR /&gt;"check_name": "Description Populated",&lt;BR /&gt;"check_type": "Warning"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way you can add new BPA controls by using this method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found&amp;nbsp;benchmarks/controls are loaded from below location and some reference are to CSV file located on '/libs/best_practice_assessment/bpat_documentation.csv'. I was able to find contents/benchmarks.xml, but not the CSV file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you able to explain how BPA process is pulling all&amp;nbsp;benchmarks ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/html/libs/common/bestpractices/loadXML.php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# LOAD Benchmark&lt;BR /&gt;if (file_exists(INC_ROOT.'/contents/benchmarks.xml')){&lt;BR /&gt;$xml = simplexml_load_file(INC_ROOT.'/contents/benchmarks.xml');&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks_topics;");&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks;");&lt;BR /&gt;$bestPracticesdb-&amp;gt;query("TRUNCATE benchmarks;");&lt;BR /&gt;$benchmark_version=$xml-&amp;gt;attributes()-&amp;gt;version;&lt;BR /&gt;$benchmark_date=$xml-&amp;gt;attributes()-&amp;gt;date;&lt;BR /&gt;$checks=array();&lt;BR /&gt;$tests=array();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/html/libs/common/bestpractices/bpat.php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function load_csv_description(){&lt;BR /&gt;$description=false;&lt;/P&gt;
&lt;P&gt;if (file_exists(INC_ROOT.'/libs/best_practice_assessment/bpat_documentation.csv')){&lt;BR /&gt;ini_set('auto_detect_line_endings',TRUE);&lt;BR /&gt;$handle = fopen(INC_ROOT.'/libs/best_practice_assessment/bpat_documentation.csv','r');&lt;BR /&gt;$description=array();&lt;BR /&gt;while ( ($data = fgetcsv($handle,0,';') ) !== FALSE ) {&lt;BR /&gt;$description[$data[0]]['title']=$data[4];&lt;BR /&gt;$description[$data[0]]['description']=$data[6];&lt;BR /&gt;}&lt;BR /&gt;ini_set('auto_detect_line_endings',FALSE);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return $description;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 13:57:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343284#M2853</guid>
      <dc:creator>Yasiru</dc:creator>
      <dc:date>2020-08-11T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expedition BPA customise or disable some checks associated to the diffe</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343290#M2855</link>
      <description>&lt;P&gt;We are not the developers of the BPA, but we consume the results that the BPA team has implemented and do the mapping for some specific check remediations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to address to them via their Live space:&lt;BR /&gt;&lt;A href="https://live.paloaltonetworks.com/t5/best-practice-assessment/ct-p/Best_Practice_Assessment" target="_blank"&gt;https://live.paloaltonetworks.com/t5/best-practice-assessment/ct-p/Best_Practice_Assessment&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:49:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/expedition-bpa-customise-or-disable-some-checks-associated-to/m-p/343290#M2855</guid>
      <dc:creator>dgildelaig</dc:creator>
      <dc:date>2020-08-11T14:49:37Z</dc:date>
    </item>
  </channel>
</rss>

