<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cloudfence on Medium]]></title>
        <description><![CDATA[Stories by Cloudfence on Medium]]></description>
        <link>https://medium.com/@cloudfence?source=rss-de9b71456481------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IJ5vBzMWEm-KtVQFUf_HPw.png</url>
            <title>Stories by Cloudfence on Medium</title>
            <link>https://medium.com/@cloudfence?source=rss-de9b71456481------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:01:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudfence/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web-based SSL VPN plugin for OPNsense]]></title>
            <link>https://cloudfence.medium.com/web-based-ssl-vpn-plugin-for-opnsense-be04b21594a4?source=rss-de9b71456481------2</link>
            <guid isPermaLink="false">https://medium.com/p/be04b21594a4</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[opnsense]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Cloudfence]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 20:35:27 GMT</pubDate>
            <atom:updated>2023-11-08T09:49:37.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This plugin has been developed based on <a href="https://guacamole.apache.org/">Apache Guacamole</a>, bringing a range of advantages, especially when it comes to integration with OPNsense.</p><p>One of its greatest advantages is that it runs Apache Guacamole directly on OPNsense without needing an external server or installation, <a href="https://en.wikipedia.org/wiki/FreeBSD_jail"><strong>all within a secure jail environment.</strong></a></p><p>Some of the advantages of our plugin include:</p><p><strong>Browser-Based Access:</strong> The Web VPN plugin allows remote access via a web browser, eliminating the need to install a VPN client on each device. This simplifies connections.</p><p><strong>Support for Multiple Protocols:</strong> Supporting various protocols such as RDP, SSH, and VNC, this plugin provides access to a wide range of systems remotely.</p><p><strong>Ease of Implementation and Maintenance:</strong> Compared to a conventional VPN, the plugin is easier to deploy and manage, saving time and effort.</p><p><strong>Access from Anywhere:</strong> With the Web VPN plugin, you can access remote resources from anywhere with an internet connection, making it ideal for remote teams or remote connections.</p><p><strong>Advanced Security Integration:</strong> The plugin offers advanced security, including multi-factor authentication (MFA), to protect your remote connections.</p><p><strong>Integration with Active Directory:</strong> Additionally, the plugin seamlessly integrates with AD, simplifying identity and access management for organizations that use it.</p><p><em>Note: The plugin is currently in the beta development phase.</em></p><h3>Prerequisites</h3><p>To use the Cloudfence Web VPN, you will need to install three plugins on OPNsense:</p><ol><li>Activate our plugin repository (community): Learn how in this article — <a href="https://help-cloudfence.eu.helpdocs.com/opnsense-support/opnsense-cloudfence-plugins-repository">How to install Cloudfence plugins?</a></li><li>Cloudfence Web VPN Portal plugin (<em>os-cloudfence-vpnwebportal</em>): the plugin itself. <a href="https://view.forms.app/cloudfence/webvpn-free-1"><em>Download instructions here</em></a></li><li>HA Proxy (<em>os-haproxy</em>): Required for reverse proxy access via HTTPS.</li></ol><h3>Configuration:</h3><p>After installing the Cloudfence Web VPN plugin, go to <strong><em>Cloudfence &gt; VPN Web Portal</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*CpRzvklK-BfIOP0c13UG6w.png" /><figcaption>VPN Web Portal menu</figcaption></figure><p>To enable the plugin with <em>session recording</em>, checking the “<em>Enable</em>” and “<em>Session Recording</em>” options.</p><p>In the “<em>LDAP authentication</em>” option, select the type of authentication to be used. If you have an AD server configured, you can select it here. Otherwise, leave the “<em>none</em>” option selected, and users will be managed directly in Guacamole.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*iOXSokobME5h4ocCw6_j2g.png" /><figcaption>Enabling plugin</figcaption></figure><p><em>Note: The “Local Database” option will have no effect if it remains selected.</em></p><p>Enable MFA: Choose one (or both if you want) of the two multi-factor authentication options, which are OTP and <a href="https://duo.com/">DUO</a> <em>(needs an extra subscription on Cisco DUO)</em></p><p><em>Note: To use OTP with users created directly in Guacamole, the key must be collected on your first access on the Guacamole login screen after completing the remaining configurations.</em></p><p>Click on <em>Save</em> to start the jail´s plugin.</p><h3>Enabling External Access through HAProxy — Installation and Configuration</h3><p>To ensure secure access to the Web VPN portal, it is imperative to publish it exclusively via <em>HTTPS</em>. This requires the use of a reverse proxy to establish the connection between the Internet and our VPN portal. In this article, we will use <em>HAProxy</em>.</p><p>Below are the essential steps to configure <em>HAProxy</em> to work seamlessly with the VPN portal:</p><p><em>Note: It is strongly discouraged to make the VPN portal available over the web without encryption (HTTP instead of HTTPS).</em></p><p>Once you’ve installed the HAProxy plugin, navigate to <em>Services &gt; HAProxy &gt; Settings:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*UUd_mRXnciAmaCUn5r2oqw.png" /><figcaption>HAProxy menu</figcaption></figure><p>In the “<em>Real Servers</em>” tab, click the “<em>+</em>” button to create a new configuration and follow these instructions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iTGZ8dDIf_YY8dxvNOvpw.png" /><figcaption>HAProxy — Real Servers</figcaption></figure><ul><li><em>Name or Prefix</em> — Set it as “<em>WebVPN_Jail</em>.”</li><li>Type — Choose “static”</li><li><em>FQDN</em> or <em>IP </em>— Set it to “<em>127.0.0.11</em>”</li><li><em>Port </em>— Specify it as <em>8080</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*rnhD7xUX_xOe75TJ4271Ng.png" /><figcaption>HAProxy — Edit Server</figcaption></figure><p>In the “<em>Virtual Services — Backend Pools</em>” tab, click the “<em>+</em>” button to establish a new configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-yE9D_vRHjZl8RQJJ4TYXg.png" /><figcaption>HAProxy — Backend Pools</figcaption></figure><ul><li><em>Name </em>— Label it as “<em>WebVPN_Pool</em>”</li><li><em>Servers </em>— Select the name you assigned earlier in the “<em>Real Servers</em>” section, which in this tutorial is “<em>WebVPN_Jail</em>”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*u5pkq3GBBTj9lEQYjYO5zw.png" /><figcaption>Edit Backend Pool</figcaption></figure><p>In the “<em>Virtual Services — Public Servers</em>” tab, click the “+” button to add a new configuration, and follow these steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ScKoKBXSbAvwdiDqHuPFHg.png" /><figcaption>Virtual Services</figcaption></figure><ul><li><em>Name </em>— Label it as “<em>WebVPN_FrontEnd</em>”</li><li><em>Listen Addresses</em> — Input the IP address to be used for accessing the Web VPN Portal, followed by “ : “ and port 443: <em>XXX.XXX.XXX.XXX:443</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*0rV-0yLM1qiWMRpx8YAUIw.png" /><figcaption>Edit Public Service</figcaption></figure><p><em>Note: If your firewall lacks a public IP on its interfaces, you will need to configure the private IP in HAProxy. However, the device with the public IP (usually found in the modem or the internet service provider’s router) must forward all traffic to the firewall interfaces without restrictions for the Cloudfence Web VPN to function correctly.</em></p><p><em>Default Backend Pool</em> — Choose the Backend Pool you established earlier, which in this tutorial is “<em>WebVPN_Pool</em>”</p><p><em>Enable SSL offloading</em> — Check this option.</p><p><em>Certificates </em>— Select a self-signed certificate, which can be the <em>Web GUI certificate</em> itself, provided it has not expired. It is advisable to use a valid certificate rather than a self-signed one, which can be installed on your OPNsense or obtained for free using the Acme plugin (Let’s Encrypt).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*GHd76vOLK1IeJBtwXG1ENQ.png" /><figcaption>Edit Backend Pool</figcaption></figure><p>In the “<em>Settings — Service</em>” tab:</p><ul><li><em>Enable HAProxy</em> — Check this option to activate HAProxy.</li><li>Click “<em>Save &amp; Test syntax</em>” to apply all changes and perform validation tests.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3CzVaucofpz25ba4hizyAQ.png" /><figcaption>Enabling HAProxy service</figcaption></figure><p>If you encounter a message like the one in the image below, it confirms that your settings have been successfully validated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*YZAJ20XBsOnFyAGUxQxB2Q.png" /><figcaption>HAProxy configuration test result</figcaption></figure><p><strong>Firewall Rules — WAN</strong></p><p>Here, you need to create an inbound rule on the <em>WAN</em> interface to allow access to the <em>Cloudfence Web VPN Portal</em>. Below is an example of the rule to create:</p><ul><li>Protocol: <em>TCP</em></li><li>Source: <em>any</em></li><li>Destination: <em>WAN Address</em> (or the IP you configured in HAProxy)</li><li>Destination Port: <em>443 (HTTPS)</em></li><li>Description (suggested): <em>Web VPN Cloudfence</em></li></ul><h3>Firewall — NAT — Outbound</h3><p>In order for the connections between the Web VPN Portal to work, there is still a need to add an <em>Outbound NAT</em> where the connections from the jail source should exit with the LAN IP (or the IP of the interface on the same network that is making the access).</p><p>First, check if the <em>Outbound NAT</em> is in <em>HYBRID</em> mode. If it is not, change it by selecting the “<em>Hybrid outbound NAT rule generation</em>” option. <em>Save</em>, and then click on the &#39;+&#39; sign to add a new NAT rule.</p><p>Below is an example of the Outbound NAT rule to be configured:</p><p>Interface: <em>LAN (or the local network interface used)</em><br>Source:<em> Loopback net</em><br>Source Port: <em>any</em><br>Destination: <em>LAN net (or the local network used)</em><br>Destination Port: <em>any</em><br>NAT Address: <em>Interface Address</em><br>NAT Port: <em>any</em><br>Static Port: <em>no</em><br>Description (suggestion): <em>Web VPN Local Servers</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHdH6iLLJNvQ76jwnuC69g.png" /><figcaption>NAT Outbound mode</figcaption></figure><h3>Testing — Accessing the VPN Web Portal</h3><p>Using <em>HTTPS</em>, access the VPN Web Portal by typing the <em>public IP </em>address into a web browser. This IP address should have been pre-configured in <em>HAProxy</em> or is the public IP provided by your internet distribution device (modem or router supplying the IP to your firewall).</p><p>For example: <a href="https://123.123.123.123/">https://123.123.123.123</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*un2w0imzmuZDS9gI1cQU5w.png" /><figcaption>VPN Web Portal login page</figcaption></figure><p><strong><em>Important</em></strong>:</p><p>1. Upon the first access to the portal, use the username “guacadmin” and the default password: “cloudfence”<br>2. You will be prompted to change the password after the initial login.<br>3. If you encounter issues with OTP code insertion during your first access, temporarily uncheck the “OTP authentication” option in the VPN Web Portal settings (<em>Cloudfence &gt; VPN Web Portal</em>).<br> <br><em>Note: If your firewall does not have a public IP directly on its WAN interface, you will need to configure the local WAN IP in HAProxy. However, when accessing the Web Portal, you must enter the current public IP that the firewall is using to connect to the internet. In other words, use the public IP used by the modem or router on your network (the one supplying internet to the firewall).</em></p><h3>Conclusion</h3><p>In this article, we have learned how to install and configure the Cloudfence Web VPN portal plugin. We discussed important steps such as enabling two-factor authentication and setting up HTTPS access using the HAProxy plugin. If you require assistance with the plugin, we provide community support on our <a href="https://discord.com/channels/1166434392974053389/1166464595150520330">Discord</a> server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be04b21594a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPNsense WAF Wazuh integration]]></title>
            <link>https://cloudfence.medium.com/opnsense-waf-wazuh-integration-f32e0b83b37?source=rss-de9b71456481------2</link>
            <guid isPermaLink="false">https://medium.com/p/f32e0b83b37</guid>
            <category><![CDATA[waf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[opnsense]]></category>
            <dc:creator><![CDATA[Cloudfence]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 11:24:44 GMT</pubDate>
            <atom:updated>2023-03-17T11:53:13.851Z</atom:updated>
            <content:encoded><![CDATA[<p>As a security operations centre (SOC) professional, preventing and stopping web attacks is one of the most significant challenges we face on a daily basis. In a <a href="https://medium.com/@jccwbb/website-protection-with-opnsense-3586a529d487">previous article</a>, I discussed the effectiveness of the OPNsense NGINX plugin while defending web servers against attacks. I also highlighted this plugin in my book — <a href="https://a.co/d/1UP79Av">OPNsense Beginner to Professional</a>.</p><p>While the OPNsense + NGINX + NAXSI bundle blocks known attacks automatically, it’s impossible to expect a 100% accuracy rate in attack detection and prevention. To approach this rate, an effective strategy is to monitor and correlate events, and this is where Wazuh excels.</p><p>At Cloudfence we have been using Wazuh for years, and we are impressed with the project’s exceptional improvements through these years. However, despite its wide range of features, decoders, and rules, there are specific cases when it’s necessary to customize or create your own decoders and rules. In this article, I’ll explain how to do just that.</p><h3>Wazuh and NGINX + NAXSI rules</h3><p>While Wazuh does contain rules that are capable of reading NGINX + NAXSI events, the implementation in OPNsense differs slightly in terms of log format. Thus, a few adjustments are necessary. While there are existing decoders and rules in the stock Wazuh rules, it is important to note that they may require some modification to work with the specific implementation used in OPNsense and also to extract some fields.</p><h3>Wazuh + OPNsense</h3><h4>Requirements</h4><p>To follow the following steps you will need an installed and configured Wazuh manager and an at least one OPNsense agent with NGINX plugin installer and configured with NAXSI rules installed. If you need help with Wazuh and OPNsense, a good starting point is the official documentation. Both projects have extremely rich and detailed documentation:</p><ul><li><a href="https://documentation.wazuh.com/current/index.html">Wazuh official documentation</a></li><li><a href="https://docs.opnsense.org/">OPNsense official documentation</a></li><li><a href="https://medium.com/@jccwbb/website-protection-with-opnsense-3586a529d487">OPNsense NGINX + NAXSI configuration article</a></li></ul><p>OPNsense has a native Wazuh agent package. In this tutorial, I&#39;ll not cover its installation and configuration process.</p><h4>Wazuh Group configuration for OPNsense endpoints</h4><p>First, we need to create a new group to deploy the configuration to our OPNsense-based agents.</p><ol><li>Create a group called <em>opnsense</em> in the Wazuh Web UI: <strong>Management &gt; Groups &gt; Add new group</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SGSvYF1ulSK3Hca85QhwpA.png" /><figcaption>Wazuh — Creating and editing new group</figcaption></figure><p>After creating, click on the <strong><em>pencil icon</em></strong> to edit the group’s configuration and add these lines:</p><pre>&lt;agent_config&gt;<br> &lt;localfile&gt;<br>  &lt;log_format&gt;syslog&lt;/log_format&gt;<br>  &lt;location&gt;/var/log/nginx/*.log&lt;/location&gt;<br>  &lt;out_format&gt;Cloudfence-WAF: $(log)&lt;/out_format&gt;<br> &lt;/localfile&gt;<br>&lt;/agent_config&gt;</pre><p>As Wazuh has an NGINX stock decoder, I am using the <em>&lt;out_format&gt;</em> to insert a tag at the beginning of each log file to match our custom decoder, which we will create later.</p><p>2. Add an existing OPNsense agent to the new group <strong><em>by clicking on the group&#39;s name</em></strong> (opnsense):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCVVz-BO1ws1MfXERURXDw.png" /><figcaption>Wazuh — Adding agent to group</figcaption></figure><h4>Creating the decoder</h4><p>To create a new custom decoder file go to <strong><em>Management &gt; Decoders</em></strong> and click on the<strong><em> Custom decoders</em></strong> button. Next click on the <strong><em>+ Add new decoders file:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_V4hFHdohIN3loJ3Ju0Iw.png" /><figcaption>Wazuh — create a new decoder file</figcaption></figure><p>Copy and paste the following content to the new decoder file (naxsi-opnsense):</p><pre>&lt;!-- NAXSI OPNsense: Cloudfence (c)2023 - <br>https://cloudfence.com.br / Julio Camargo --&gt;<br><br><br>&lt;!-- NAXSI OPNsense <br>Cloudfence-WAF: 2023/03/16 09:46:51 [error] 72753#110979: *453734 NAXSI_FMT: ip=200.1.2.3&amp;server=200.10.020.3&amp;uri=/%C0&amp;vers=1.3&amp;total_processed=170236&amp;total_blocked=17328&amp;config=drop&amp;zone0=URL&amp;id0=20&amp;var_name0=, client: 200.1.2.3, server: cloudfence.eu, request: &quot;POST /%C0 HTTP/1.1&quot;, host: &quot;200.10.20.30&quot; --&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-parent&quot;&gt;<br>        &lt;prematch&gt;^Cloudfence-WAF&lt;/prematch&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;prematch&gt;NAXSI_FMT&lt;/prematch&gt;<br>        &lt;regex offset=&quot;after_prematch&quot;&gt;ip=(\S+)\pserver=(\S+)\puri=(\S+)\pvers=(\S+)\ptotal_processed=(\d+)\ptotal_blocked=(\d+)\pconfig=(\w+)\p&lt;/regex&gt;<br>        &lt;order&gt;srcip,server,uri,naxsi_version,processed_requests,blocked_requests,mode&lt;/order&gt;<br>&lt;/decoder&gt;<br>&lt;!--<br>Cloudfence-WAF: 2023/03/16 11:36:12 [error] 72753#110979: *454250 NAXSI_FMT: ip=200.1.2.3&amp;server=fw.cloudfence.eu&amp;uri=/api/ids/settings/set&amp;vers=1.3&amp;total_processed=22531&amp;total_blocked=722&amp;config=learning&amp;cscore0=$policy3dc4de357fc54ccfa0ffd272b08420b7&amp;score0=6&amp;cscore1=$policy323ed56953ea44a695002c72b0a8cd15&amp;score1=8&amp;zone0=BODY&amp;id0=1206&amp;var_name0=homenet&amp;zone1=BODY&amp;id1=1015&amp;var_name1=homenet, client: 200.1.2.3, server: fw.cloudfence.eu, request: &quot;POST /api/ids/settings/set HTTP/2.0&quot;, host: &quot;fw.cloudfence.eu&quot;, referrer: &quot;https://fw.cloudfence.eu/ui/ids&quot;<br>--&gt;<br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;cscore\d=(\d+)\p&lt;/regex&gt;<br>        &lt;order&gt;score_tag&lt;/order&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;score\d=(\d+)\p&lt;/regex&gt;<br>        &lt;order&gt;score&lt;/order&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;zone\d=(\S+)\p&lt;/regex&gt;<br>        &lt;order&gt;zone&lt;/order&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;id\d=(\d+)\p&lt;/regex&gt;<br>        &lt;order&gt;rule_id&lt;/order&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;request: &quot;(\.+)&quot;&lt;/regex&gt;<br>        &lt;order&gt;request&lt;/order&gt;<br>&lt;/decoder&gt;<br><br>&lt;decoder name=&quot;naxsi-opnsense-child&quot;&gt;<br>        &lt;parent&gt;naxsi-opnsense-parent&lt;/parent&gt;<br>        &lt;regex&gt;referrer: &quot;(\.+)&quot;&lt;/regex&gt;<br>        &lt;order&gt;referrer&lt;/order&gt;<br>&lt;/decoder&gt;</pre><p>In the first block &lt;<em>naxsi-opnsense-parent&gt;</em> the <em>&lt;prematch&gt;</em> matches with our <em>&lt;out_format&gt;</em> used previously in the group configuration file.</p><p>Next, in the <em>&lt;naxsi-opnsense-child&gt;</em> blocks extract the fields using regex.</p><p><em>TODO: parse the dynamic fields that can occur more than once in the same log line.</em></p><p>Save it by clicking on the <strong><em>Save</em></strong> button.</p><h4>Creating the rules</h4><p>Finally, we create the rules to use the new decoder: Go to <strong><em>Management &gt; Rules </em></strong>and click on the <strong><em>Custom rule button</em></strong>. Next click on the <strong><em>+ Add new rules file</em></strong> and create the rules file named <strong><em>custom-naxsi-opnsense</em></strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ps1nlkFLw2OU2RKaZu4bQ.png" /><figcaption>Wazuh — Creating new custom rules file</figcaption></figure><pre>&lt;!-- NAXSI custom rules IDs: 100100 - 100199 --&gt;<br>&lt;group name=&quot;nginx,web,&quot;&gt;<br>    &lt;rule id=&quot;100100&quot; level=&quot;0&quot; noalert=&quot;1&quot;&gt;<br>        &lt;decoded_as&gt;naxsi-opnsense-parent&lt;/decoded_as&gt;<br>        &lt;description&gt;OPNsense NAXSI events grouped.&lt;/description&gt;<br>    &lt;/rule&gt;<br>    &lt;rule id=&quot;100101&quot; level=&quot;6&quot;&gt;<br>        &lt;if_sid&gt;100100&lt;/if_sid&gt;<br>        &lt;field name=&quot;mode&quot;&gt;drop|block&lt;/field&gt;<br>        &lt;description&gt;OPNsense NAXSI - event blocked by WAF&lt;/description&gt;<br>        &lt;mitre&gt;<br>            &lt;id&gt;T1083&lt;/id&gt;<br>        &lt;/mitre&gt;<br>        &lt;group&gt;naxsi,attack,gpg13_10.1,&lt;/group&gt;<br>    &lt;/rule&gt;<br>    &lt;rule id=&quot;100102&quot; level=&quot;10&quot;&gt;<br>        &lt;if_sid&gt;100100&lt;/if_sid&gt;<br>        &lt;field name=&quot;mode&quot;&gt;learning&lt;/field&gt;<br>        &lt;description&gt;OPNsense NAXSI - event passed by WAF in $(mode) mode&lt;/description&gt;<br>        &lt;group&gt;naxsi,attack,&lt;/group&gt;<br>    &lt;/rule&gt;<br>&lt;/group&gt;</pre><p>The first rule (<em>id 100100</em>) will group the messages to the next two rules (<em>100101</em> and <em>100102</em>) will match blocked and passed events from NAXSI respectively.</p><h4>Testing</h4><p>After saving the new rules file, restart your Wazuh manager, and using a sample log file click on the <em>Ruleset Test</em> option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kab9prUrMpEPeaMRuEmHJQ.png" /><figcaption>Custom Naxsi OPNsense ruleset file</figcaption></figure><p>We can use the loglines samples inside the decoder file to test:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kab9prUrMpEPeaMRuEmHJQ.png" /><figcaption>Wazuh — Ruleset test</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*7XalSdXlUKGKhyA__moeUw.png" /><figcaption>Wazuh — Ruleset test window</figcaption></figure><p>The complete output of the ruleset test:</p><pre>**Phase 1: Completed pre-decoding.<br> full event: &#39;Cloudfence-WAF: 2023/03/16 09:46:51 [error] 72753#110979: *453734 NAXSI_FMT: ip=200.1.2.3&amp;server=200.10.020.3&amp;uri=/%C0&amp;vers=1.3&amp;total_processed=170236&amp;total_blocked=17328&amp;config=drop&amp;zone0=URL&amp;id0=20&amp;var_name0=, client: 200.1.2.3, server: cloudfence.eu, request: &quot;POST /%C0 HTTP/1.1&quot;, host: &quot;200.10.20.30&quot;&#39;<br><br>**Phase 2: Completed decoding.<br> name: &#39;naxsi-opnsense-parent&#39;<br> parent: &#39;naxsi-opnsense-parent&#39;<br> blocked_requests: &#39;17328&#39;<br> mode: &#39;drop&#39;<br> naxsi_version: &#39;1.3&#39;<br> processed_requests: &#39;170236&#39;<br> request: &#39;POST /%C0 HTTP/1.1&#39;<br> rule_id: &#39;20&#39;<br> server: &#39;200.10.020.3&#39;<br> srcip: &#39;200.1.2.3&#39;<br> uri: &#39;/%C0&#39;<br> zone: &#39;URL&#39;<br><br>**Phase 3: Completed filtering (rules).<br> id: &#39;100101&#39;<br> level: &#39;6&#39;<br> description: &#39;OPNsense NAXSI - event blocked by WAF&#39;<br> groups: &#39;[&quot;nginx&quot;,&quot;web&quot;,&quot;naxsi&quot;,&quot;attack&quot;]&#39;<br> firedtimes: &#39;2&#39;<br> gpg13: &#39;[&quot;10.1&quot;]&#39;<br> mail: &#39;false&#39;<br> mitre.id: &#39;[&quot;T1083&quot;]&#39;<br> mitre.tactic: &#39;[&quot;Discovery&quot;]&#39;<br> mitre.technique: &#39;[&quot;File and Directory Discovery&quot;]&#39;<br>**Alert to be generated.</pre><p>As we can see, the both decoder and rule are working well!</p><h4>Final Thoughts</h4><p>By creating custom rules tailored to your specific needs, you can further enhance the security of your web applications. With the adjustments made to the Wazuh rules for the OPNsense implementation, you now have the flexibility to create new rules that align perfectly with your security requirements. Strengthen your defences today with Wazuh and OPNsense!</p><p>If you need additional help with Wazuh and OPNsense we can always count on Cloudfence Professional Services: <a href="https://cloudfence.com.br/en/contact/">https://cloudfence.com.br/en/contact/</a></p><p>GitHub Repository with files used in this article: <a href="https://github.com/cloudfence/opnsense-naxsi-decoder">https://github.com/cloudfence/opnsense-naxsi-decoder</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f32e0b83b37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPNsense 22.7 —falha de segurança com usuário installer]]></title>
            <link>https://cloudfence.medium.com/opnsense-22-7-falha-de-seguran%C3%A7a-com-usu%C3%A1rio-installer-ef50943fb42?source=rss-de9b71456481------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef50943fb42</guid>
            <category><![CDATA[opnsense]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[firewall-security]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Cloudfence]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 10:48:03 GMT</pubDate>
            <atom:updated>2022-10-05T11:48:57.551Z</atom:updated>
            <content:encoded><![CDATA[<p>Hoje foi anunciado pelo time de desenvolvimento do OPNsense o lançamento da versão <em>22.7.5</em> que corrige uma questão de segurança envolvendo o usuário <em>installer</em>, utilizado durante a instalação do OPNsense. A outra grande mudança foi a correção de kernel do protocolo TCP que em determinadas situações pode levar a um kernel-panic. O anúncio completo (em inglês) pode ser lido aqui: <a href="https://forum.opnsense.org/index.php?topic=30565.0">https://forum.opnsense.org/index.php?topic=30565.0</a></p><h3>Sobre a falha</h3><p>A falha somente afeta instalações do OPNsense com versões <strong>22.7.x</strong> (<em>versões anteriores não são afetadas</em>) nas seguintes condições:</p><h4>Acessos afetados:</h4><ul><li>Console local</li><li>SSH: <strong>somente</strong> quando está configurado para permitir acessos utilizando usuário/senha e sem uso de chaves — <strong>(o que não é o padrão da instalação)</strong>, exemplo desta configuração abaixo:</li></ul><figure><img alt="SSH — Configuração" src="https://cdn-images-1.medium.com/max/689/1*JJdLdwOZwFyeg6lIW3MkYA.png" /><figcaption>Configuração SSH</figcaption></figure><p><strong>O acesso WebUI não é afetado por esta falha.</strong></p><p><strong>Uma recomendação importante: </strong>independentemente da falha<strong>, NUNCA</strong> se deve deixar acessos a console (<em>Web</em> ou <em>SSH</em>) do OPNsense abertas para as WANs. Prefira sempre utilizar regras com origem e preferencialmente VPNs.</p><h4>Acesso com usuário afetado</h4><p>O acesso com o usuário <em>installer</em> é feito durante a instalação do OPNsense e neste caso, mesmo após instalado, o usuário continua ativo, possibilitando acesso indevido ao OPNSense, dentro das condições mencionadas acima.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRavmf1AK3Wt_2nNfM9s5w.png" /><figcaption>Acesso com o usuário <strong><em>installer</em></strong> via SSH</figcaption></figure><p>Normalmente não seria possível fazer este acesso SSH com o usuário installer, uma vez que este é desativado após o termino da instalação do sistema.</p><p><strong>ATENÇÃO</strong>: <strong>a correção recomendada pelo time do OPNsense é a atualização para a versão 22.7.5.</strong> O que será demonstrado a seguir é uma solução apenas para sanar a questão de forma provisória, no caso de não poder aplicar o update e reiniciar o firewall imediatamente.</p><h3>Correção</h3><p>Como já mencionado acima, <strong>a correção é feita na atualização do OPNsense</strong> para a versão <strong>22.7.5, </strong>que neste caso demandará um <em>reboot</em>.</p><p>Caso não seja possível fazer um reboot no firewall de imediato para aplicar a correção, nossa recomendação é desativar o usuário <em>installer:</em></p><p>Exemplo da linha do usuário installer no /etc/passwd de uma <strong>versão não afetada</strong>:</p><p><em>installer:*:0:0::0:0:Installer Superuser:/root:/usr/sbin/nologin</em></p><p>Exemplo da linha do usuário installer no /etc/passwd de uma <strong>versão afetada — 22.7</strong>:</p><p><em>installer:$2y$10$YRVoF4SgskIsrXOvOQjGieB9XqHPRra9R7d80B3BZdbY/j21TwBfS:0:0::0:0:System Administrator:/root:</em><strong><em>/usr/local/sbin/opnsense-installer</em></strong></p><p>Note que na versão afetada o <em>shell</em> do usuário é o <em>opnsense-installer</em>, o que não permite acesso ao shell convencional para comandos, porém, ainda assim possibilita que se execute comandos dentro do instalador, o que representa um grande risco.</p><p>Uma forma de evitar que este acesso indevido seja feito é desativando o usuário via linha de comando:</p><p><em># pw lock installer</em></p><p>E para garantir, vamos ainda trocar o shell padrão de <em>opnsense-installer </em>para <em>nologin:</em></p><p><em># chsh -s /usr/sbin/nologin installer</em></p><p>Com os dois comandos acima, a conta estará bloqueada e sem acesso tanto pela <em>console local</em> quanto via <em>SSH.</em></p><p>Você pode conferir as alterações do usuário no <em>/etc/passwd</em>:</p><p><em>installer:</em><strong><em>*LOCKED*</em></strong><em>$6$5dsUoeUXZLdWBSoL$JDn7WVApf8Mo5Wn0ePZ/.3ug9cjv3KhkNLw.AXfHonnglxdC2ZtB9Xm5Fe8bKQoaxcV5n.m9WDYvRl4NuWsKp1:0:0::0:<br>0:System Administrator:/root:</em><strong><em>/usr/sbin/nologin</em></strong></p><h3>Considerações finais</h3><p>Primeiro, jamais deixe acesso administrativo do OPNsense aberto para Internet sem fazer uso de regras restritivas e principalmente de VPN. Prefira utilizar chaves para o acesso SSH e mantenha se possível, seu firewall atualizado!</p><p>A Cloudfence disponibiliza um portal de ajuda para usuários de OPNsense de forma gratuita com diversos artigos: <a href="https://ajuda.cloudfence.com.br/">https://ajuda.cloudfence.com.br/</a></p><p>Além disto prestamos suporte gratuito no forum oficial (em português) — <a href="https://forum.opnsense.org/index.php?board=10.0">https://forum.opnsense.org/index.php?board=10.0</a></p><p>Oferecemos também pacotes de suporte (em português e inglês), que além de horas para suporte, disponibilizamos plugins comerciais, acesso a OSINT, auditoria do firewall, etc. Acesse já e conheça mais sobre nosso trabalho: <a href="https://cloudfence.com.br/pacotes-de-suporte-opnsense/">https://cloudfence.com.br/pacotes-de-suporte-opnsense/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef50943fb42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Com instalar o plugin CrowdSec no OPNsense]]></title>
            <link>https://cloudfence.medium.com/com-instalar-o-plugin-crowdsec-no-opnsense-6ac486062c31?source=rss-de9b71456481------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ac486062c31</guid>
            <category><![CDATA[cyberdefender]]></category>
            <category><![CDATA[crowdsec]]></category>
            <category><![CDATA[opnsense]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cloudfence]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 16:20:01 GMT</pubDate>
            <atom:updated>2022-04-18T16:32:09.447Z</atom:updated>
            <content:encoded><![CDATA[<p>CrowdSec é um <strong>I</strong>ntrusion <strong>P</strong>revention <strong>S</strong>ystem (<strong>IPS</strong>) colaborativo, gratuito e open-source que analisa comportamentos e responde ataques baseado em dados compartilhados por sua grande comunidade de utilizadores. Para conhecer mais sobre este projeto <a href="https://crowdsec.net/">clique aqui</a>.</p><p>Como parceira oficial CrowdSec, a Cloudfence incluiu em seus repositórios o plugin para facilitar o processo de instalação. Com isto a instalação do plugin CrowdSec será feito 100% através da interface Web do OPNsense.</p><p><em>Apesar de incluído no repositório da Cloudfence, o plugin e seus respectivos pacotes de dependência são obtidos do</em><a href="https://github.com/crowdsecurity/opnsense-plugin-crowdsec"><em> repositório oficial da CrowdSec</em></a><em>.</em></p><h3>Pré-requisitos</h3><p>Para instalar o plugin, é necessário que o repositório Cloudfence esteja instalado no OPNsense (versão 22.1). Caso, ainda não tenha o repositório Cloudfence ativo, basta seguir estes passos:</p><p><a href="https://ajuda.cloudfence.com.br/opnsense-suporte/como-instalar-os-plugins-cloudfence">Como instalar os plugins Cloudfence?</a></p><h3>Introdução ao CrowdSec</h3><p>Através da análise dos logs monitorizados, o CrowdSec detecta e faz o bloqueio de possíveis comportamentos malíciosos identificados.</p><p>A figura abaixo, retirada da <a href="https://doc.crowdsec.net/">documentação oficial do projeto</a>, ilustra o funcionamento da pilha CrowdSec:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*YkCPKB9V-w7cfW_B.png" /><figcaption>ref.: <a href="https://doc.crowdsec.net/docs/intro">https://doc.crowdsec.net/docs/intro</a></figcaption></figure><p>Alguns conceitos importantes, da arquitetura da solução:</p><ul><li><strong>Scenarios</strong>: o “<em>scenarios</em>” são arquivos em formato <a href="https://en.wikipedia.org/wiki/YAML">YAML</a> que permitem a detecção de comportamentos específicos (ataque por ex.) nos logs analisados para posteriormente produzir um alerta.</li><li><strong>Decision</strong>: uma “<em>decision</em>” é a definição da ação a ser tomada contra um possível ofensor.</li><li><strong>CrowdSec Agent</strong> — O agente faz a interação entre a <em>API local</em>, <em>CLI local</em>, os <em>bouncers</em> e com a <em>API central</em> da CrowdSec, compartilhando e consumindo dados com a central.</li><li><strong>Bouncers </strong>— O “<em>bouncer</em>” é que toma uma ação que é disparada por um alerta consultando as “<em>decisions</em>” na API local do agente.</li></ul><h3>Instalação do CrowdSec no OPNsense</h3><p>Com o repositório Cloudfence ativo e instalado, na console Web do OPNsense, vá até a página <strong>System / Firmware</strong> e clique na aba <strong>Plugins:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nfPkNUFgPxQlq1Ib.png" /><figcaption>Instalação do plugin com a o repositório Cloudfence habilitado</figcaption></figure><ul><li>Para facilitar a localização do plugin, na caixa de pesquisa, digite: <em>“crowd”.</em></li><li>Clique no botão <strong>‘+’</strong> do plugin <em>os-crowdsec</em> para adicionar o plugin ao OPNsense — o plugin será instalado já com os pacotes de dependência (<em>crowdsec</em> e <em>crowdsec-firewall-bouncer</em>)</li></ul><p>Será exibido um aviso que este plugin é fornecido por um terceiro (fora do repositório oficial OPNsense):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/0*gOw8M4o_XG7e2V3o.png" /><figcaption>Diálogo de confirmação da instalação do plugin</figcaption></figure><p>Caso concorde em continuar, será necessário clicar no botão <strong>Install</strong></p><p>Após instalado, a página de configuração do plugin deve ser acessada através do caminho — <strong>Service / CrowdSec / Settings </strong>aba<strong> Settings:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ia-4VJJ0fcmtQUVN.png" /><figcaption>Services / CrowdSec / Settings</figcaption></figure><p>O plugin para OPNsense é composto por dois componentes: o <a href="https://doc.crowdsec.net/docs/next/local_api/intro/">agente CrowdSec</a> e o <a href="https://docs.crowdsec.net/docs/bouncers/firewall/">Firewall Bouncer</a>.</p><p>Ao habilitarmos o <em>CrowdSec agent</em> e o <em>Firewall Bouncer</em> iremos proteger o OPNsense contra milhares de endereços IPs de atacantes conhecidos (base de dados compartilhada da CrowdSec). O plugin no OPNsense por padrão tem a capacidade de analisar os logs dos acessos SSH e da WebGUI para detectar se há algum possível ataque de <a href="https://en.wikipedia.org/wiki/Brute-force_attack">brute-force</a>.</p><p>Para ativar o serviço marque as opções:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*FKpYXOXOdkbFQvUG.png" /><figcaption>Services / CrowdSec / Settings</figcaption></figure><p>Marque as opções:</p><ol><li><strong>Enable CrowdSec Agent</strong></li><li><strong>Enable CrowdSec Firewall Bouncer</strong></li><li>Clique no botão <strong>Save</strong></li></ol><p>Serão criados dois novos <em>Aliases</em> de firewall: <em>crowdsec_blacklists</em> e <em>crowdsec6_blacklists. </em>O conteúdo destes aliases pode ser verificado em <strong>Firewall / Diagnostics / Aliases</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/0*-_7z6FPD_CBrJ0eY.png" /><figcaption>Firewall / Diagnostics / Aliases</figcaption></figure><p>Para bloquear a comunicação com os IPs destes <em>Aliases</em>, basta criar uma regra de firewall.</p><p>Exemplo de regras de bloqueio:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NSWuzPsbYQPhnTQn.png" /><figcaption>Firewall / Rules / Floating</figcaption></figure><p>Feito isto, seu OPNsense já conta com a proteção da CrowdSec!</p><p>Caso precise de suporte profissional com open source security <a href="https://cloudfence.com.br/contato/">fale conosco</a>!</p><p>Encontre mais artigos como este em: <a href="https://ajuda.cloudfence.com.br/">https://ajuda.cloudfence.com.br</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ac486062c31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HaloCloud Service — Open Source Zero Trust Network]]></title>
            <link>https://cloudfence.medium.com/halocloud-service-open-source-zero-trust-network-ec7a62bc2124?source=rss-de9b71456481------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec7a62bc2124</guid>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[zero-trust-security]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[zero-trust]]></category>
            <category><![CDATA[opnsense]]></category>
            <dc:creator><![CDATA[Cloudfence]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 18:58:43 GMT</pubDate>
            <atom:updated>2020-10-22T19:23:32.617Z</atom:updated>
            <content:encoded><![CDATA[<h3>HaloCloud Service — Open Source Zero Trust Network</h3><p>No dia 9/10/2020, apresentamos na CyberCloudExpo 2020, nosso projeto HaloCloud, uma solução que aplica o conceito de Zero Trust Networking baseado em projetos open source. Este projeto nasceu em resposta as rápidas mudanças vistas neste ano de 2020 em que a pandemia do COVID19 abateu nosso planeta e mudou para sempre nossa forma de trabalhar.</p><h3>O que é Zero Trust Network?</h3><p><strong>Resposta curta</strong></p><p>Zero Trust Network ou Zero Trust Security, é um modelo de segurança de TI que aplica um rigoroso processo de autenticação e autorização e que nunca confia inicialmente em um usuário ou dispositivo e faz a validação de ambos para estabelecer uma conectividade com os privilégios mínimos necessários.</p><p><strong>Resposta longa</strong></p><p>Este é um vídeo de nossa apresentação sobre este tema, durante a CyberCloudExpo 2020, evento realizado em Portugal:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQHTN578dyU0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQHTN578dyU0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQHTN578dyU0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/334270f61174f6553d5aef7ffc9acdd3/href">https://medium.com/media/334270f61174f6553d5aef7ffc9acdd3/href</a></iframe><h3>Halo Cloud Service</h3><p>Se você já assistiu ao vídeo acima, pode pular este parágrafo. Caso contrário, irei explicar de forma breve o que é este nosso novo serviço e como ele poderá ser utilizado no futuro, seja você cliente ou não da Cloudfence.</p><p>O principal objetivo deste serviço é conectar de forma segura, usuários aos ambientes de trabalho, estejam eles aonde estiverem, de forma segura e rápida. Como serviço, ele irá prover tudo de forma gerenciada e monitorada, ou seja, estará em nuvem e com todo o suporte necessário para que sua infraestrutura e seus usuários estejam conectados e seguros.</p><p>Como projeto open source, ele estará disponível para que você baixe e o utilize em sua própria infraestrutura, cloud ou on-premises, permitindo que tenha uma expansão dos controles atualmente empregados.</p><h3>Componentes</h3><p>Seguindo o modelo empregado pelo Software Defined Perimeter, utilizaremos dois componentes básicos para a solução:</p><h4>Gateway</h4><p>Como gateway utilizaremos o <a href="https://opnsense.org/">OPNsense</a>, que atuará recebendo as conexões dos usuários e aplicará os controles iniciais.</p><p><strong>Algumas funções do Gateway:</strong></p><ul><li><strong>Autenticação do usuário</strong>: credenciais de acesso, verificação de certificado SSL, token (One Time Password), Geolocalização, Horário permitido de acesso, etc;</li><li><strong>Políticas de acesso</strong>: dependendo do tipo de dispositivo, versão do sistema operacional, usuário, perfil de acesso e métricas de riscos como vulnerabilidades, processos suspeitos em execução, rede de acesso de origem, etc, o nível de confiança do acesso será definido e os acessos permitidos, uma vez que dentro do conceito de <strong>ZTN</strong>, todo acesso inicialmente é negado por padrão (sem confiança estabelecida);</li></ul><h4>Manager (Controller)</h4><p>Para esta função, vamos utilizar o <a href="https://wazuh.com/">Wazuh</a> que irá aplicar todos os controles nos dispositivos, além de constantemente verificar se há algum risco novo para reduzir ou até mesmo finalizar o acesso.</p><p><strong>Algumas funções do Manager:</strong></p><ul><li>Validação se é um dispositivo autorizado;</li><li>Aplicação e verificação de políticas de configuração do dispositivo;</li><li>Varredura de ameaças e vulnerabilidades no dispositivo conectado;</li><li>Verificação de conformidade (compliance);</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*2Ww3YZAplvfu5VcxTTJHAw.png" /><figcaption>Halo Cloud — Usuário remoto (VPN)</figcaption></figure><h3>Conectividade com o legado</h3><p>Em uma infraestrutura convencional, com servidores, firewalls e usuários concentrados em uma única localidade física, a conectividade depende de uma complexa gestão feita por times de TI, Segurança da Informação e Sistemas, porém este tipo de ambiente, para muitos negócios, é necessário e não pode ser migrado para a nuvem da noite para o dia e deverá coexistir com a nova realidade por alguns anos ainda.</p><p>E neste caso, como fica? Será possível integrar este ambiente on-premises com a nova realidade em nuvem e aplicar os conceitos de Zero Trust?</p><p>Sim, é possível, e isto já é uma realidade em muitos dos ambientes de nossos clientes. Novas tecnologias e conceitos, devem, ao nosso ver na Cloudfence, agregar e não substituir por completo os atuais ambientes. Ao desenharmos o serviço Halo Cloud, pensamos nesta realidade, possibilitando a integração de ambientes legados com os ambientes em nuvem, que possuem novos recursos de segurança disponíveis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*ftogBmueygT7_Bte79_-aA.png" /></figure><p>Na topologia acima, é possível notar que independentemente se o ambiente é “on-premises” ou em nuvem, a conectividade ira ocorrer de forma transparente aos usuários.</p><h3>Open Source Security+</h3><p>Uma infinidade de soluções comerciais, sejam elas software como serviço ou produtos vendidos como appliances, são baseados em open source. Isto demonstra a superioridade e maturidade do modelo de software open source na atualidade. Nosso espírito na Cloudfence é livre e open source! :-) Portanto, a escolha por utilizar projetos que já estão presentes há alguns anos em nossa rotina e serviços, foi uma escolha quase óbvia, porém não trivial! Graças ao poder do open source, temos soluções de excelente custo benefício e que agradam nossos clientes, que em muitos casos fez sermos os escolhidos no lugar de produtos proprietários gerenciados.</p><h3>Futuro</h3><p>O Halo Cloud service já está parcialmente disponível aos clientes da Cloudfence e em breve será disponibilizado também como repositório <a href="https://github.com/cloudfence">Github</a> com o código fonte da solução. Deste modo, será possível implementar o Zero Trust em sua própria infraestrutura.</p><p>Caso opte por conhecer este e outros serviços que oferecemos, <a href="https://cloudfence.com.br/?#contato">basta entrar em contato conosco!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec7a62bc2124" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>