<?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 Priscila Viana on Medium]]></title>
        <description><![CDATA[Stories by Priscila Viana on Medium]]></description>
        <link>https://medium.com/@priscilaviana?source=rss-af23024197a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*G9jgfiIbD7Wc3L6V.jpg</url>
            <title>Stories by Priscila Viana on Medium</title>
            <link>https://medium.com/@priscilaviana?source=rss-af23024197a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:10:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priscilaviana/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[File Integrity Monitoring & Az Sentinel]]></title>
            <link>https://medium.com/@priscilaviana/file-integrity-monitoring-az-sentinel-3130be31a120?source=rss-af23024197a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3130be31a120</guid>
            <category><![CDATA[azure-sentinel]]></category>
            <dc:creator><![CDATA[Priscila Viana]]></dc:creator>
            <pubDate>Fri, 13 Aug 2021 21:48:15 GMT</pubDate>
            <atom:updated>2022-04-25T22:53:34.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*ehkMvuFtL7eUZO_TAyoeuw.jpeg" /></figure><p>We all know the importance of having “Tripwires” in a Threat Hunting perspective.</p><p>Tripwires (meaning the capability to catch an Attacker when confidential files, network reconnaissance for high value Assets, honey Accounts, honey “OSSINT” are accessed somehow) are a highly effective way to improve Security Posture and Cyber Resiliency.</p><p>Thinking on this avenue, we have a variety of options to achieve Use Cases like these, since using Windows event id 560, or running OSQuery on Windows, etc, but in this post We’ll focus on providing basic instructions on how audit File Integrity Monitoring activities on Windows (same idea would be applied to any other OS version) through Auditbeats plugin, then, sending this information to a Logstash machine and finally sending them to Azure Sentinel log Analytics workspace.</p><p>A high level Architecture should looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DnBHGWTBu7sWvxoeH1hbxQ.jpeg" /></figure><p>Scenario:</p><ul><li>AuditBeats running on a Windows 2019 server</li><li>Logstash running on Ubuntu Server 18.04</li></ul><p>Needlees to say that We’ll be assuming an Azure Sentinel instance already up and running (more information can be found here: <a href="https://docs.microsoft.com/en-us/azure/sentinel/quickstart-onboard">https://docs.microsoft.com/en-us/azure/sentinel/quickstart-onboard</a>)</p><p>So, let’s go!</p><p><strong>How to install and Configure Auditbeat:</strong></p><p><strong>Windows</strong></p><ol><li>Download it using this link:</li></ol><pre><a href="https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.14.0-windows-x86_64.zip">https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.14.0-windows-x86_64.zip</a></pre><p>2. Put the extracted folder in:</p><pre>C:\Program Files\</pre><p>3. Run the command in PS:</p><pre>PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-auditbeat.ps1</pre><p>4. Run the following command to create Auditbeat index:</p><pre>.\auditbeat.exe setup</pre><p>5. Start Auditbeat service:</p><pre>Start-Service auditbeat</pre><p>6. In the configuration file for Auditbeat (auditbeat.yml), add what directories you want to monitor, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFV7OsUQyjDeN4JpGOLy7Q.png" /></figure><p>7. Finally, configure the output section. We’ll use the IP address of the Logstash server. Bear in mind to comment “elastic configuration” in the output section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENLHtQ34by8Ygb-GyxEAIQ.png" /></figure><p><strong>How to install and Configure Logstash</strong></p><p><strong>Ubuntu 18.04</strong></p><ol><li>Install the latest version of Java:</li></ol><pre>$ sudo apt-get install default-jre</pre><p>2. Add the GPG key to install signed packages, then add the <strong>Elastic package repository</strong> to your repository list:</p><pre>$ sudo wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -</pre><pre>$ sudo apt-get install apt-transport-https</pre><pre>$ echo &quot;deb https://artifacts.elastic.co/packages/7.x/apt stable main&quot; | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list</pre><p>3. Install LogStash:</p><pre>$ sudo apt-get update<br>$ sudo apt-get install logstash</pre><p>4. Bear in mind, you’ll need to change the directory owner and give writable permissions:</p><pre>$ sudo chown -R logstash.logstash /usr/share/logstash<br>$ sudo chmod 777 /usr/share/logstash/data</pre><p>5. Enable your new service on boot up and start it:</p><pre>$ sudo systemctl enable logstash<br>$ sudo systemctl start logstash</pre><p>From here, what we’re going to do now is configure the pipeline configuration file, which should looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOGCoigie7v4LXguGPzJcQ.jpeg" /></figure><p>Those pipelines are defined in configuration files.</p><p>But firstly, we need to install <em>microsoft-logstash-output-azure-loganalytics</em> plugin. In the directory: /usr/share/logstash/bin run the command:</p><pre>sudo ./logstash-plugin install microsoft-logstash-output-azure-loganalytics</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGOz9e6wZjcscWtktLCDNQ.png" /></figure><p>Back to the “pipeline configuration” files, we need to create “pipeline files” in the /etc/logstash/conf.d directory, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JJbGV9KtgyOogWyNRw3_g.png" /></figure><p>So, create it and Save it as beats.conf. File structure should be like this:</p><pre>input {<br>      beats {<br>          port =&gt; &quot;5044&quot;<br>      }<br>  }<br>  filter {<br>  }<br>  output {<br>      microsoft-logstash-output-azure-loganalytics {<br>        workspace_id =&gt; &quot;<strong>YOUR_WORKSPACE_ID</strong>&quot;<br>        workspace_key =&gt; &quot;<strong>YOUR_WORKSPACE_KEY</strong>&quot;<br>        custom_log_table_name =&gt; &quot;<strong>TABLE_NAME</strong>&quot;<br>      }<br>  }</pre><p>Where Table_Name is the name of the Table you want to give. The workspace ID and workspace Key can be found accessing your Azure Sentinel instance, under:</p><pre>Azure Sentinel Portal &gt;&gt; Data Connector &gt;&gt; Security Events &gt;&gt; Install agent on non-Azure Windows Machine &gt;&gt; <a href="https://portal.azure.com/#">Download &amp; install agent for non-Azure Windows machines &gt;</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vLfDhQLxZLH72o3kFY8SA.png" /></figure><p>All set, up this point, we’re going to instruct Logstash to read the pipeline configuration file and if everything go well, we’ll get the instance running</p><p>So, execute the command bellow:</p><pre>/usr/share/logstash/bin$ ./logstash -f /etc/logstash/conf.d/beats.conf --config.test_and_exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEPBKHUrz3VPsCgQlP1lCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYiDRrZF6dpb9k3Buv2uxg.png" /></figure><p>Then, execute the command:</p><pre>:/usr/share/logstash/bin$ ./logstash -f /etc/logstash/conf.d/beats.conf --config.reload.automatic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8QgNoPc48MWhOZ1fNI4Uw.png" /></figure><p>Go back to Windows Server which has Auditbeats, then start to create new files or modify existing ones under the directories configured at auditbeat.yml:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*pzdH7ksl3sHn7dVoDiAtJw.png" /></figure><p>On the Logstash server, check if the logs are being landed on logstash input driver:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6Zv8QZN2OjKA7pegC7mxA.png" /></figure><p>You can confirm by the log message that log files are being send to Azure Sentinel Log Analytics workspace.</p><p>On Azure Sentinel portal, we can use the query bellow as an example, to retrieve all events that are being ingested:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-9Y_C4LR4uo4gVCSxhj1Q.png" /></figure><p>We recall that Support means the directory name which is being monitored.</p><p>Hope this article helps you in your daily challenges in SOC environments</p><p>See ya!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3130be31a120" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playbook for Azure Sentinel & MCAS integration]]></title>
            <link>https://medium.com/@priscilaviana/playbook-for-azure-sentinel-mcas-integration-f939746d3209?source=rss-af23024197a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f939746d3209</guid>
            <category><![CDATA[azure-sentinel]]></category>
            <category><![CDATA[cloud-app-security]]></category>
            <category><![CDATA[casb]]></category>
            <category><![CDATA[logic-apps]]></category>
            <dc:creator><![CDATA[Priscila Viana]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 19:42:23 GMT</pubDate>
            <atom:updated>2020-06-01T23:06:31.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Gf2nXNwm6DeurfIyPg-ag.png" /><figcaption>Azure Sentinel Data connectors page</figcaption></figure><p>Prerequisites:</p><ul><li>Basic Knowledge on: KQL, Azure Sentinel and MCAS</li><li>Data connector for Microsoft Cloud App Security already connected on Azure Sentinel portal</li><li>Alerts from MCAS already being ingested into Azure Sentinel log analytics workspace</li></ul><p>Quick note: This playbook was built based on an existing Playbook for Azure Sentinel and Azure Security Center developed by Nathan Swift (@SwiftSolves), so all credits to my colleague ;)</p><p>Want to be able to automatically close an Incident on MCAS right after have it Investigated on Azure Sentinel? So, here’s a very straightforward LogicApp you can build to quickly handle such scenarios</p><p>Before we dive into, the whole idea is basically: once I’ve the analyzed the Incident, I can run this playbook via the lateral menu on “View playbooks” accessed via “View full details” on Incident main page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGbRgfmtWQFgX3820MJ9gg.png" /></figure><ol><li>Access your MCAS portal: <a href="https://portal.cloudappsecurity.com/">https://portal.cloudappsecurity.com</a> and on Security extensions menu, create a new API Token</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsT7XTzOsarqd6WIWGl0xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFOH-8ewCVuArKn7yiRjjA.png" /></figure><p>Copy the Token key, since you’re going to use it later.</p><p>2. On Azure Sentinel portal, hit click on Playbooks menu, and choose + Add Playbook</p><p>3. At Playbook creation page, choose the appropriated Subscription/ Resource Group and Location, and click “Review + Create”</p><p>4. Once earlier step is done, go to Logic App designer page and configure accordingly what is being shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*Tg-j4kqoVxja9h7OhQf5IA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*JMNxb45AVxnsibK6ogkxwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*1FSx6wPmBq3Hf4QXxaLRiQ.png" /></figure><p>On which:</p><p>Step 1: “Run Query and list results”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*2NtMrGi8wDy88t4IK8tzZQ.png" /></figure><p>Here’s the KQL to put on Query body:</p><p>SecurityAlert<br>| summarize arg_max(TimeGenerated, *) by SystemAlertId<br>| where SystemAlertId in(“@{triggerBody()?[‘SystemAlertId’]}”)<br>| where TimeGenerated &gt;= ago (90d)<br>| extend McasAlertID = tostring(parse_json(ExtendedLinks)[1].Href)<br>| extend Mcas2AlertID = split (McasAlertID, “/”, 5)<br>| extend Mcas2AlertID= tostring(Mcas2AlertID[0])<br>| project McasAlertID, Mcas2AlertID</p><p>Step 2: “Parse JSON”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*HkdbRYVhYWM9TCj94_25mg.png" /></figure><p>on which schema should be filled out with:</p><p>{<br> “items”: {<br> “properties”: {<br> “Mcas2AlertID”: {<br> “type”: “string”<br> },<br> “McasAlertID”: {<br> “type”: “string”<br> }<br> },<br> “required”: [<br> “McasAlertID”,<br> “Mcas2AlertID”<br> ],<br> “type”: “object”<br> },<br> “type”: “array”<br>}</p><p>Step 3: “HTTP”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*NjEL_Sh1Gw4tMCivc4GJ_Q.png" /></figure><p>URI session can be checked in the MCAS portal, have access on “API documentation”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvOLbyg3vu7g7UQd_LU5vg.png" /></figure><p>then, you’ll be presented to it on the main page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quKXQI24UgEEVwBO2r2OIQ.png" /></figure><p>that’s all. once finished, save the Logic App in the save button, and you’re all set.</p><p>Friendly remember: Playbook will be called once you choose it on “View Playbooks” in the first picture.</p><p>GoodHunting! ;-)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f939746d3209" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empowering your Fortigate in a SD-WAN scenario]]></title>
            <link>https://medium.com/@priscilaviana/empowering-your-fortigate-in-a-sd-wan-scenario-8c30f212e843?source=rss-af23024197a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c30f212e843</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[sd-wan]]></category>
            <dc:creator><![CDATA[Priscila Viana]]></dc:creator>
            <pubDate>Sun, 28 Jan 2018 23:38:36 GMT</pubDate>
            <atom:updated>2018-01-28T23:38:36.847Z</atom:updated>
            <content:encoded><![CDATA[<h3>Configuring your LTE Modem in a SD-WAN topology with Fortigate (+ADVPN, +Traffic Shapping L7, +AppControl)</h3><p>Note: On this first half of the solution you&#39;ll realize how to configure ADVPN (BGP) and using SD-WAN for your remote connections.</p><p>We all know that one of the main points when thinking about SD-WAN as a &quot;Business Driver&quot; is the facility that you have about how ensure an interesting bandwidth for your applications (regardless of whether it is a cloud application or server-client application) while reducing costs with expensive links and in same level, protecting your Organization against Breaches.</p><p>In this way, I&#39;m gonna show how take full advantage of Fortigate as not only an additional security layer, providing some interesting security for your &quot;Headquarter — Branch Office&quot; communication, but also configuring it in a SD-WAN scenario, in a &quot;Hub Spoke&quot; topology.</p><h3>Topology:</h3><p>In our scenario, we are considering just one Spoke and one HUB. Needless to say that for High Availability concerns, its recommend to have at least two HUBs in Headquarter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*iPbjCxUYJWsBgGZ5ZX6pQg.png" /><figcaption>Hub Spoke Topology</figcaption></figure><p>Explaining a little bit further, we are going to establish two redundant VPN connections from Spoke perspective, in which we have:</p><p><em>One vpn connection from wan1 on Spoke reaching wan1 on HUB side</em></p><p><em>One vpn connection from wan1 on Spoke reaching wan2 on HUB side</em></p><p><em>One vpn connection from dongle usb (lte) on Spoke reaching wan1 on HUB side</em></p><p><em>One vpn connection from dongle usb (lte) on Spoke reaching wan1 on HUB side</em></p><h3>1. Connecting your ISPs to the Fortigate (Spoke side)</h3><p>For this topology, we are considering FortiOS version 5.6.2. Connection in a GPON modem in the Fortigate Spoke wan1 port. The USB at Spoke Fortigate port will be connected in a LTE Modem (4G).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLc5Z_-0Fusv0LJlOaHNOw.png" /><figcaption>Fortigate-50E</figcaption></figure><p>WAN1 shoud be configured as a DHCP client, once is connected to a GPON device.</p><p>In this scenario, we are using Huawei E3272 model, so in order to enabling modem in USB port, once device is connected, the following commands should be executed:</p><blockquote><strong>config system lte-modem</strong></blockquote><blockquote><strong>set status enable</strong></blockquote><blockquote><strong>end</strong></blockquote><p>The new interface should be listed under <strong>Network &gt; Interfaces</strong> submenu in Fortigate GUI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkmS1-JwqDPCqLBVF4SxTw.png" /></figure><p>Then, check if the modem is shown as &quot;connected&quot; in its graphical interface and if &quot;wwan interface&quot; is able to receive ip address from it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*0QvaZSQhwOvn_NxewNsyDQ.png" /><figcaption>Network -&gt; Interfaces -&gt; wwan (Edit)</figcaption></figure><h3>2. Modifying existing Policies (spoke and hub)</h3><p>You will not be able to add any interface to the SD-WAN interface that is already used in the FortiGate’s configuration. So, in this scenario, you should firstly remove any security policies that be using either WAN1 or WAN2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWvMysbDcXcc4vAl2hchfw.png" /><figcaption>Default Policy should be removed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*TVG3TC6no0-tlGdDPAh5-A.png" /></figure><h3>3. Configuring AD-VPN Hub Spoke</h3><p>ADVPN is a combination of features that help reduce some of the complexities of communications between a central location and multiple branchs. In that way we have a simplified secure topology where through dynamic VPNs, Spokes should be able to connected on their Hubs, and Hubs don&#39;t need to know every single ip address of such spokes.</p><p>Are single points of failure a concern? Then double all this with a second hub. With the traditional point-to-point type tunnel, the work just doubled. With ADVPN, it has doubled, but the overall impact is far less than the traditional method.</p><p><strong><em>HUB SIDE</em></strong></p><p>a. Creating VPN Tunnels:</p><blockquote>config vpn ipsec phase1-interface<br> edit “VPNS2Swan1”<br> set type dynamic<br> set interface “wan1”<br> set peertype any<br> set auto-discovery-sender enable</blockquote><blockquote>set add-route disable<br> set dpd on-idle<br> set comments “HUB WAN1”<br> set net-device enable<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next</blockquote><blockquote>edit “VPNS2Swan2”<br> set type dynamic<br> set interface “wan2”<br> set peertype any<br> set auto-discovery-sender enable</blockquote><blockquote>set add-route disable<br> set dpd on-idle<br> set net-device enable<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next<br>end</blockquote><blockquote>config vpn ipsec phase2-interface<br> edit “VPNS2Swan1P2”<br> set phase1name “VPNS2Swan1”<br> next<br> edit “VPNS2Swan2P2”<br> set phase1name “VPNS2Swan2”<br> next<br>end</blockquote><p>b. Configuring Tunnel interfaces:</p><blockquote>config sys in<br> edit “VPNS2Swan1”<br> set vdom “root”<br> set ip 10.10.10.4 255.255.255.255<br> set allowaccess ping<br> set type tunnel<br> set remote-ip 10.10.10.254 255.255.255.255<br> set snmp-index 17<br> set interface “wan1”<br> next<br> edit “VPNS2Swan2”<br> set vdom “root”<br> set ip 10.10.10.2 255.255.255.255<br> set allowaccess ping<br> set type tunnel<br> set remote-ip 10.10.10.254 255.255.255.255<br> set snmp-index 18<br> set interface “wan2”<br> next</blockquote><p>c. Configuring BGP:</p><blockquote>config router bgp<br> set as 65000<br> set router-id 10.10.10.1<br> set keepalive-timer 3<br> set holdtime-timer 10<br> set ibgp-multipath enable<br> set graceful-restart enable<br> config neighbor-group<br> edit “ADVPN-GROUP”<br> set advertisement-interval 1<br> set link-down-failover enable<br> set next-hop-self enable<br> set soft-reconfiguration enable<br> set remote-as 65000<br> set keep-alive-timer 1<br> set holdtime-timer 3<br> set route-reflector-client enable<br> next<br> end<br> config neighbor-range<br> edit 1<br> set prefix 10.10.10.0 255.255.255.0<br> set neighbor-group “ADVPN-GROUP”<br> next<br> end<br> config redistribute “connected”<br> set status enable<br> end</blockquote><p><strong><em>SPOKE SIDE:</em></strong></p><p>a. Creating VPN Tunnels:</p><p>In the Spoke side, we are going to create two dial-up vpn connections for each physical interface (wan1 and usb), providing a fully redundant scenario:</p><blockquote>config vpn ipsec phase1-interface<br> edit “VPNSpokewan1Hubwan1”<br> set interface “wan1”<br> set peertype any<br> set add-route disable<br> set dpd on-idle<br> set auto-discovery-receiver enable<br> set nattraversal disable<br> set remote-gw 212.x.y.z (valid IP address from wan1 HUB)<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next<br> edit “VPNSpokewan1Hubwan2”<br> set interface “wan1”<br> set peertype any<br> set dpd on-idle<br> set nattraversal disable<br> set remote-gw 212.a.b.c (valid IP address from wan2 HUB)<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next<br> edit “VPN_Modem_Hubwan1”<br> set interface “wwan”<br> set peertype any<br> set dpd on-idle<br> set remote-gw 212.x.y.z<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next<br> edit “VPN_Modem_Hubwan2”<br> set interface “wwan”<br> set peertype any<br> set dpd on-idle<br> set remote-gw 212.a.b.c<br> set psksecret F0r1n3t!@$$#et*<br> set dpd-retrycount 2<br> set dpd-retryinterval 1<br> next<br>end</blockquote><p>b. Configuring Tunnel Interfaces:</p><blockquote>config sys in<br> edit “VPNSpokewan1Hubwan1”<br> set vdom “root”<br> set ip 10.10.10.14 255.255.255.255<br> set allowaccess ping<br> set bfd enable<br> set type tunnel<br> set remote-ip 10.10.10.4 255.255.255.255<br> set role wan<br> set snmp-index 6<br> set interface “wan1”<br> next<br> edit “VPNSpokewan1Hubwan2”<br> set vdom “root”<br> set ip 10.10.10.12 255.255.255.255<br> set allowaccess ping<br> set bfd enable<br> set type tunnel<br> set remote-ip 10.10.10.2 255.255.255.255<br> set role wan<br> set snmp-index 16<br> set interface “wan1”<br> next<br> edit “VPN_Modem_Hubwan1”<br> set vdom “root”<br> set ip 10.10.10.18 255.255.255.255<br> set allowaccess ping<br> set type tunnel<br> set remote-ip 10.10.10.4 255.255.255.255<br> set role wan<br> set snmp-index 19<br> set interface “wwan”<br> next<br> edit “VPN_Modem_Hubwan2”<br> set vdom “root”<br> set ip 10.10.10.19 255.255.255.255<br> set allowaccess ping<br> set type tunnel<br> set remote-ip 10.10.10.2 255.255.255.255<br> set role wan<br> set snmp-index 20<br> set interface “wwan”<br> next<br>end</blockquote><blockquote>config vpn ipsec phase2-interface<br> edit “VPNSpokewan1Hubwan1”<br> set phase1name “VPNSpokewan1Hubwan1”<br> set auto-negotiate enable<br> next<br> edit “VPNSpokewan1Hubwan2”<br> set phase1name “VPNSpokewan1Hubwan2”<br> set auto-negotiate enable<br> next<br> edit “VPN_Modem_Hubwan1”<br> set phase1name “VPN_Modem_Hubwan1”<br> set auto-negotiate enable<br> next<br> edit “VPN_Modem_Hubwan2”<br> set phase1name “VPN_Modem_Hubwan2”<br> set auto-negotiate enable<br> next<br>end</blockquote><p>c. Configuring BGP:</p><blockquote>config router bgp<br> set as 65000<br> set router-id 10.10.10.3<br> set keepalive-timer 3<br> set holdtime-timer 10<br> set ibgp-multipath enable<br> set scan-time 5<br> set graceful-restart enable<br> config neighbor<br> edit “10.10.10.4”<br> set advertisement-interval 1<br> set bfd enable<br> set link-down-failover enable<br> set next-hop-self enable<br> set soft-reconfiguration enable<br> set description “WAN1”<br> set remote-as 65000<br> next<br> edit “10.10.10.2”<br> set advertisement-interval 1<br> set bfd enable<br> set link-down-failover enable<br> set next-hop-self enable<br> set soft-reconfiguration enable<br> set description “WAN2”<br> set remote-as 65000<br> next<br> end<br> config redistribute “connected”<br> set status enable<br> end</blockquote><h3>4. Configuring SD-WAN Interfaces</h3><p>Go to <strong>Network &gt; SD-WAN</strong>.</p><p>Set the <strong>Interface State </strong>to <strong>Enable</strong>.</p><p>Under <strong>SD-WAN</strong>, hit &quot;Create New&quot; then add all VPN tunnels interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUl76L3BrydScgSyGN9fzA.png" /></figure><p>Regarding VPN Tunnels on this page, you can leave &quot;gateway&quot; field as 0.0.0.0</p><p>In &quot;Load Balancing Algorithm&quot;, you can choose the method you prefer. In my case, I&#39;ve choose &quot;per volume&quot; and distributed the weight between all four VPN tunnels accordingly. Hit &quot;Apply&quot; on the bottom of the page.</p><h3>5. Configuring SD-WAN Rules and checks</h3><p>Now we are going to configure a SD-WAN rule that will help in the quality criteria for changing traffic over the VPN tunnels.</p><p>In this way, we choose a host behind the HUB, where Spoke can ping on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*5Qwcxz6VhI-sZgS7-bHNGg.png" /><figcaption>Add a host behind HUB</figcaption></figure><p>More granular control is possible when we edit this healthcheck through cli:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-utaMZyJU0vPTJ1RJ1Plg.png" /><figcaption>Healhcheck in cli</figcaption></figure><p>Then, we are going to configure a SD-WAN rule (which can be applied for any TCP/UDP connection or Internet- Layer7 connection), involving the VPN tunnels and using Packet Loss as a Quality criteria for it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxkxCmKBTzSnPsnziNrCqw.png" /></figure><p>If you want to check your cli config, there is more granular control you can have on it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fsxS8X4l4AULd2IQCFSDQ.png" /></figure><p>Finally, configure your Firewall Policies in order to allow traffic in Spoke and Hub:</p><p><em>(this is just an example, please adjust them accordingly to your Corporate Security Policies).</em></p><p><strong>SPOKE: </strong>(put them on the top over existing firewall policies)</p><ul><li>From: any — to: sd-wan- Source: all — Destination: All — NAT: Enabled</li><li>From: sd-wan — to: any — Source: all — Destination: All — NAT: Enabled</li></ul><p><strong>HUB:</strong> (put them on the top over existing firewall policies)</p><ul><li>From: any — to: (VPNs created)- Source: all — Destination: All — NAT: Enabled</li><li>From: (VPNs created) — to: any — Source: all — Destination: All — NAT: Enabled</li></ul><h3>6. Verifying VPN Tunnels and BGP</h3><p>Right after configuring SD-WAN rules, bear in mind you should verify your VPN tunnels and BGP neighborhood (all should be in good shape up this point):</p><p>In the Spoke Fortigate, Go to <strong>Monitor &gt; IPsec Monitor</strong></p><p>Certify that all 4 tunnels are listed as <strong>UP</strong>.</p><p>In Spoke and HUB Fortigates, check the BGP tunnel status, running the commands bellow:</p><p># get router info routing-table bgp</p><p># get router info routing-table database</p><p># get router info bgp summary</p><p>For this paper, we gonna stop for while. In the next part, we gonna take this same scenario and configure: APP Control Rules, Application prioritization through SD-WAN tunnel, advanced granular parameters for SD-WAN and much more! ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c30f212e843" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons from the field (for Infosec teams)]]></title>
            <link>https://medium.com/@priscilaviana/lessons-from-the-field-for-infosec-teams-91632d50e620?source=rss-af23024197a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/91632d50e620</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[wannacry]]></category>
            <category><![CDATA[ransomware]]></category>
            <dc:creator><![CDATA[Priscila Viana]]></dc:creator>
            <pubDate>Tue, 31 Oct 2017 07:36:50 GMT</pubDate>
            <atom:updated>2017-10-31T07:37:35.126Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago I had a chance to talk to Benjamin Delpy (@gentilkiwi), an outstanding Infosec researcher, “mimikatz” creator (extremely used in post exploitation scenarios attacks (eg.: Petya/NotPetya, BadRabbit ransomware,..), also responsible for wanakiwi — a tool that helped enterprises to recover their files from Wannacry ransomware.</p><p>And given the trend of recent attacks, the increase of “ransomware everywhere” appeal and the new challenges brought by this “Infosec pandora”, I got the opportunity to make him some questions that hangs on any Infosec teams mind.</p><p><strong>-What do you think is the biggest conceptual problem related to security today?</strong></p><p>In a nutshell: (nearly) nobody care about security during conception.</p><p>When we’re lucky, people are starting to get interested about security during integration/pre-production ; so when it’s nearly too late… they can’t/don’t want to take time on it. It’s now a race to deliver, to release.</p><p>A funny comparison is with computer/console game industry: few years ago, they didn’t have the same capabilities to fix / patch after a release, so had to make intensive tests before, hire a lots of experts, … They knew if the release is a fail, they will not have a second chance.</p><p>Now, they deliver not finished, not optimized, not translated versions, all in the cloud, because… business ¯\_(ツ)_/¯ . They can fix after, they can sell addons…</p><p>Shortest delivery path, consumer subscriptions, no priority on quality from start, … bigger business !</p><p><strong>-What is the most important way organizations can improve their security practices?</strong></p><p>Organization have to find the good balance between relying on key peoples VS policies / magic box. I don’t see enough companies with real security team focused on important challenges.</p><p>I usually see people not feeling responsible for their actions, trusting blindly that vendors will magically secure all the things for them. It’s exactly with this kind of behavior we can see stuff like BadRabitt… you remember ? asking the user to download an untrusted executable from internet and to run it as administrator…</p><blockquote>Having meeting between different companies groups of “security cheerleaders” at RSACon or First will help some executives to feel better and having ideas for their next budgets, but will not make their employees responsible or aware.</blockquote><p>Listen your employees, give them the time to be excellent on their technologies, stop thinking the next cloud-ai-blockchain-disruptive-appliance will replace employees personal investment and knowledge… let them be responsible of their infrastructure.</p><p><strong>-How can the industry addressing these security issues?</strong></p><blockquote>Badly. Thinking you can stop a state sponsored attack with basic industries solution is an illusion.</blockquote><p>Unfortunately, thinking they can sell solution around this subject is a reality, and they do it very well.</p><p>Stop to disperse in order to be present on the buzzwords market. Customers want good products, not a new one each time the press make a CEO level article.</p><p><strong>-How you establish the relashionship: 0-day exploits vs known vulnerabilities taking in mind these recents outbreaks and leaks?</strong></p><blockquote>Recent attacks had exposed that you don’t need a 0-day to be successful on your attack.</blockquote><p>On recent ones, the world was aware or the leak, of the danger, a patch was available for supported systems…. But the success rate was very good.</p><blockquote>It’s not a good signal to attackers, 0 days will continue to works, but they now know that they don’t have to invest roughly on 0-day to success.</blockquote><p>Invest on user behavior and slowness of the companies is always a success !</p><p><strong>-How do you see the future of cyberattacks?</strong></p><p>Why cyberattack would stop ? Cyberattack have been used for a long time, but more secretly, and at least more silently…</p><p>Business / press pushed them on the front of the stage, and what’s the result ? Only more business to the industry…</p><p>Did that stop them ? No… of course. They also hide themselves less, and know how to manipulate their press coverage.</p><p>Hope you guess this post useful and helpful to improve your Security posture in a next level discussion</p><p>See ya in a next! ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91632d50e620" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>