<?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: Best Practices for Threat Prevention API Calls to Appliance in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114146#M15950</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Already noted that you can't use extraction by Cloud API type (see attached screenshot named API_note.PNG).&lt;/P&gt;
&lt;P&gt;An example ("demo") of extraction API to Appliance via curl - please find in attached text file named:&amp;nbsp;Threat_Extraction_Appliance_API_curl_example.txt&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before running this curl command, make sure you replace :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;The &lt;EM&gt;x.x.x.x&lt;/EM&gt; with the appliance ip-address.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;The&amp;nbsp;&lt;EM&gt;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn&lt;/EM&gt; with the appliance api-key.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In this example I base64 encoded a small office excel file (I named it in the curl API call as "000102.xls").&lt;/P&gt;
&lt;P&gt;Of course, before running the curl command, reminding required settings described in documentation for "extraction" in Appliance API calls :&amp;nbsp; &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk113599" target="_blank" rel="nofollow noopener"&gt;sk113599&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk137032&amp;amp;partition=General&amp;amp;product=Threat" target="_self" rel="noopener noreferrer"&gt;sk137032&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BTW, please find up-to-date Threat Extraction to Appliance API python utility&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/tex_api" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any further questions.&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ofer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4edb5fed7427beOfer_Fichman_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 18:50:37 GMT</pubDate>
    <dc:creator>Ofer_Fichman</dc:creator>
    <dc:date>2021-03-20T18:50:37Z</dc:date>
    <item>
      <title>Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/82825#M13252</link>
      <description>&lt;P&gt;The Check Point Threat Prevention API lets you use Threat Prevention products through web services.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Threat Prevention API calls can be used either to Threat-Cloud or to a local Appliance.&lt;/P&gt;
&lt;P&gt;Here we focus on Threat Prevention API to Appliance.&lt;/P&gt;
&lt;P&gt;We can use Threat Prevention API calls to an appliance, when we’d like to scan files and/or clean their suspicious parts, in an environment where these files don’t go through the gateway traffic, however there’s an appliance with Threat Emulation enabled and/or Threat Extraction enabled.&lt;/P&gt;
&lt;P&gt;Using API calls to Threat Emulation and/or Anti Virus&amp;nbsp; on the appliance, we detect whether files are malicious. Threat Emulation includes detecting unknown malware and Zero-day attacks.&lt;/P&gt;
&lt;P&gt;Using API calls to Threat Extraction on the appliance, we proactively block malware and we are enabled to deliver reconstructed files to avoid delays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Utilities&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="98.0370774263904%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="35.90100111234705%"&gt;Name&lt;/TD&gt;
&lt;TD width="35.90100111234705%" class="lia-align-center"&gt;Description&lt;/TD&gt;
&lt;TD width="26.2350752016963%" class="lia-align-center"&gt;Link&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="35.90100111234705%"&gt;tp_api&lt;/TD&gt;
&lt;TD width="35.90100111234705%"&gt;ALL IN !&lt;SPAN&gt;&amp;nbsp;Threat Emulation API, Threat Extraction API and Anti Virus API calls to an appliance.&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="26.2350752016963%"&gt;
&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/tp_api" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/appliance_tpapi/tree/master/tp_api&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="35.90100111234705%"&gt;
&lt;P&gt;te_api&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="35.90100111234705%"&gt;
&lt;P&gt;Threat Emulation&lt;SPAN&gt;&amp;nbsp;API calls to an appliance&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="26.2350752016963%"&gt;
&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/te_api" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/appliance_tpapi/tree/master/te_api&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="35.90100111234705%"&gt;tex_api&lt;/TD&gt;
&lt;TD width="35.90100111234705%"&gt;Threat Extraction&lt;SPAN&gt;&amp;nbsp;API calls to an appliance&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="26.2350752016963%"&gt;
&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/tex_api" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/appliance_tpapi/tree/master/tex_api&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;av_api&lt;/TD&gt;
&lt;TD&gt;Anti Virus&lt;SPAN&gt;&amp;nbsp;API calls to an appliance&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/av_api" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/appliance_tpapi/tree/master/av_api&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Video&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Demonstrating the use of Threat Emulation API calls to Appliance &amp;nbsp;via curl commands.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhoneBoy_1-1587582234251.gif" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5735i39A382253644CE58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhoneBoy_1-1587582234251.gif" alt="PhoneBoy_1-1587582234251.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-M3cWVlajE6PGEvMAc-9AfmhrwbrfUFg8w1600h884r293" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="1667782424619983537" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-M3cWVlajE6PGEvMAc-9AfmhrwbrfUFg8w1600h884r293');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/M3cWVlajE6PGEvMAc-9AfmhrwbrfUFg8"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhoneBoy_0-1587582223457.gif" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5734i234167A70F8C138F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhoneBoy_0-1587582223457.gif" alt="PhoneBoy_0-1587582223457.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Documentation references&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64.17666303162487%" height="25px" class="lia-align-center"&gt;Description&lt;/TD&gt;
&lt;TD width="35.82333696837514%" height="25px" class="lia-align-center"&gt;Link&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.17666303162487%" height="84px"&gt;
&lt;P&gt;Threat Prevention API reference guide.&lt;/P&gt;
Note: The guide is common to both Cloud API and Appliance API, except for&amp;nbsp; Threat Extraction API to appliance.&lt;/TD&gt;
&lt;TD width="35.82333696837514%" height="84px"&gt;&lt;A href="https://sc1.checkpoint.com/documents/TPAPI/CP_1.0_ThreatPreventionAPI_APIRefGuide/html_frameset.htm" target="_self"&gt;TPAPIRefGuide&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.17666303162487%" height="40px"&gt;
&lt;P&gt;SK for using API to appliance that includes Threat Extraction.&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="35.82333696837514%" height="40px"&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk137032&amp;amp;partition=General&amp;amp;product=Threat" target="_self"&gt;sk137032&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.17666303162487%" height="25px"&gt;Using the Threat Emulation early malicious verdict feature via API (te_eb feature).&lt;/TD&gt;
&lt;TD width="35.82333696837514%" height="25px"&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk117168#New%20Public%20API%20Interface" target="_self"&gt;sk117168_chapter4&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.17666303162487%" height="25px"&gt;Generating and retrieving the new Threat Emulation reports via API to appliance.&lt;/TD&gt;
&lt;TD width="35.82333696837514%" height="25px"&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk120357&amp;amp;partition=Advanced&amp;amp;product=Threat#New%20Public%20API%20Interface" target="_self"&gt;sk120357_chapter5&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:48:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/82825#M13252</guid>
      <dc:creator>Ofer_Fichman</dc:creator>
      <dc:date>2021-04-27T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/83154#M13253</link>
      <description>&lt;P&gt;Very nice!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 20:10:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/83154#M13253</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2020-04-25T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114137#M15945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please demo how "extraction" in curl?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run these command, but not working&lt;/P&gt;&lt;P&gt;curl --insecure -X POST \&lt;BR /&gt;&lt;A href="https://10.9.1.100:18194/tecloud/api/v1/file/upload" target="_blank" rel="noopener"&gt;https://x.x.x.x:18194/tecloud/api/v1/file/upload&lt;/A&gt; \&lt;BR /&gt;-H 'Content-Type: application/json' \&lt;BR /&gt;-F 'request={ "request": [{"file_name": "MyFile.docx", "file_type": "docx", "features": [ "extraction" ], "extraction": { "method": "clean" } } ] }' \&lt;BR /&gt;-F 'file=@/home/admin/MyFile.docx'&lt;/P&gt;&lt;P&gt;It shows&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"response" : [&lt;BR /&gt;{&lt;BR /&gt;"features" : [ "extraction" ],&lt;BR /&gt;"file_name" : "MyFile.docx",&lt;BR /&gt;"file_type" : "docx",&lt;BR /&gt;"md5" : "98c85fd8326af531fc1b50d90d3479f3",&lt;BR /&gt;"sha1" : "9afd524f9874ebcc2968d82813645cc9984347ff",&lt;BR /&gt;"sha256" : "3debf5b8f820feef44b36c3353af050b09d5c5a06873a34f47b8db787c21d354",&lt;BR /&gt;"status" : {&lt;BR /&gt;"code" : 1004,&lt;BR /&gt;"label" : "NOT_FOUND",&lt;BR /&gt;"message" : "Couldn't find the requested file, please upload it"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 13:05:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114137#M15945</guid>
      <dc:creator>Jarvis_Lin</dc:creator>
      <dc:date>2021-03-20T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114146#M15950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Already noted that you can't use extraction by Cloud API type (see attached screenshot named API_note.PNG).&lt;/P&gt;
&lt;P&gt;An example ("demo") of extraction API to Appliance via curl - please find in attached text file named:&amp;nbsp;Threat_Extraction_Appliance_API_curl_example.txt&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before running this curl command, make sure you replace :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;The &lt;EM&gt;x.x.x.x&lt;/EM&gt; with the appliance ip-address.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;The&amp;nbsp;&lt;EM&gt;nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn&lt;/EM&gt; with the appliance api-key.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In this example I base64 encoded a small office excel file (I named it in the curl API call as "000102.xls").&lt;/P&gt;
&lt;P&gt;Of course, before running the curl command, reminding required settings described in documentation for "extraction" in Appliance API calls :&amp;nbsp; &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk113599" target="_blank" rel="nofollow noopener"&gt;sk113599&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk137032&amp;amp;partition=General&amp;amp;product=Threat" target="_self" rel="noopener noreferrer"&gt;sk137032&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BTW, please find up-to-date Threat Extraction to Appliance API python utility&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/appliance_tpapi/tree/master/tex_api" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any further questions.&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Ofer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4edb5fed7427beOfer_Fichman_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 18:50:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114146#M15950</guid>
      <dc:creator>Ofer_Fichman</dc:creator>
      <dc:date>2021-03-20T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114157#M15955</link>
      <description>&lt;P&gt;Hi Ofer,&lt;/P&gt;&lt;P&gt;Thank you for your example, I understand.&lt;/P&gt;&lt;P&gt;Another question:&lt;/P&gt;&lt;P&gt;Is this a only way to get cleaned-file from "file_enc_data" by decoded?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 06:05:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114157#M15955</guid>
      <dc:creator>Jarvis_Lin</dc:creator>
      <dc:date>2021-03-21T06:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Threat Prevention API Calls to Appliance</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114158#M15956</link>
      <description>&lt;P&gt;Hi Jarvis Lin,&lt;/P&gt;
&lt;P&gt;Yes, via API the only way to get the cleaned-file is by base64 encoding the file content and set it in "file_enc_data" field in the Request.&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 06:22:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Best-Practices-for-Threat-Prevention-API-Calls-to-Appliance/m-p/114158#M15956</guid>
      <dc:creator>Ofer_Fichman</dc:creator>
      <dc:date>2021-03-21T06:22:25Z</dc:date>
    </item>
  </channel>
</rss>

