<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Posts on Angel Alvarez</title>
        <link>/posts/</link>
        <description>Recent content in Posts on Angel Alvarez</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
        <lastBuildDate>Mon, 30 May 2022 19:32:20 -0700</lastBuildDate>
        <atom:link href="/posts/index.xml" rel="self" type="application/rss+xml" />
        
        <item>
            <title>Simple Threat Intel Feed Puller</title>
            <link>/posts/simple-threat-intel-feed-puller/</link>
            <pubDate>Mon, 30 May 2022 19:32:20 -0700</pubDate>
            
            <guid>/posts/simple-threat-intel-feed-puller/</guid>
            <description>A simple and easy way to pull some free and open-source threat intel feeds.
Tool History I wanted to share a simple tool I created. I call it the Simple Threat Intelligence Feed Puller, it is as the name suggests a simple way to pull some free and open-source threat intel feeds.
This tool originally started as a PowerShell script which I wanted to release but, I wanted it to be as “system agnostic” as possible.</description>
            <content type="html"><![CDATA[<p>A simple and easy way to pull some free and open-source threat intel feeds.</p>
<p><img src="/../images/gontran-isnard-3-fuFf4gPNY-unsplash_dithered.jpg" alt="Dithered Image of some Antenna Dishes - img attr - Gontran Isnard" title="Dithered Image of some Antenna Dishes - img attr - Gontran Isnard"></p>
<h2 id="tool-history">Tool History</h2>
<p>I wanted to share a simple tool I created. I call it the <a href="https://github.com/Aztek1337/simple_threat_intel_feed_puller">Simple Threat Intelligence Feed Puller</a>, it is as the name suggests a simple way to pull some free and open-source threat intel feeds.</p>
<p>This tool originally started as a PowerShell script which I wanted to release but, I wanted it to be as “system agnostic” as possible. Foolish me wanted to write a PowerShell version and a Bash version, but it eventually struck me that a Python tool would be best if I was truly trying to reach a system agnostic tool.</p>
<p>This script just uses one very common external library - <a href="https://requests.readthedocs.io/en/latest/">requests</a> and uses a local library I made that comes with the repo. All the script really does is send GET requests to the URLs specified in <code>threat_feeds.txt</code>, parses the responses to grab the unique IP addresses and then spits them out into a file. Which the file can easily be used for various things.</p>
<h2 id="my-usage">My Usage</h2>
<p>I use this tool is to check my network logs to see if local IP addresses have communicated with any known malicious IP addresses, and also I make a block list for both ingress and egress traffic on the edge firewall. I work mainly with Fortigates which have a very easy method of incorporating an <a href="https://docs.fortinet.com/document/fortigate/7.0.1/administration-guide/9463/threat-feeds">external threat-feed</a> which can be used as a regular address object when building policies.</p>
<h2 id="closing-thoughts">Closing Thoughts</h2>
<p>Currently this tool only pulls IPv4 addresses from some common threat feeds. Please feel free to <a href="mailto:angel.alvarez@alva.systems">email</a> or DM me on <a href="https://twitter.com/aztekxyz">Twitter</a> if there is any questions or feedback.</p>
]]></content>
        </item>
        
        <item>
            <title>Newsboat a Minimalistic RSS Reader</title>
            <link>/posts/newsboat/</link>
            <pubDate>Sun, 28 Feb 2021 17:38:57 -0800</pubDate>
            
            <guid>/posts/newsboat/</guid>
            <description>Recently I&amp;rsquo;ve been working on trying to use less social media as I&amp;rsquo;m working on trying to be more focused on more important tasks and also to save my sanity. A problem arose, turns out I use social medial as an aggregate for news and blogs that I care about. I needed a way to keep updated more efficiently also not to rely on social media or email newsletters. This is where the fantastic Newsboat comes in.</description>
            <content type="html"><![CDATA[<p><img src="/../images/newsboat_logo.png" alt="Newsboat Logo" title="Newsboat Logo"></p>
<p>Recently I&rsquo;ve been working on trying to use less social media as I&rsquo;m working on trying to be more focused on more important tasks and also to save my sanity. A problem arose, turns out I use social medial as an aggregate for news and blogs that I care about. I needed a way to keep updated more efficiently also not to rely on social media or email newsletters. This is where the fantastic <a href="https://newsboat.org/">Newsboat</a> comes in.</p>
<h2 id="rss-readers-and-modern-issues">RSS Readers and Modern Issues</h2>
<p>If your not familiar with an RSS reader, it is a creation of the early web that is still prominently used to this day. It is a standardized way to receive updates from websites and also the main delivery method for podcasts.</p>
<p>I&rsquo;ve been trying use RSS Readers to keep organized but a lot of  modern RSS readers are in my opinion, horrendous. They are too focused on some UX that I have no idea what they are trying to accomplish. I was always left feeling  that the RSS Readers are too noisy and unusable to what I&rsquo;m trying to use it for.</p>
<h2 id="the-advent-of-newsboat">The Advent of Newsboat</h2>
<p>I forgot how I came into awareness of Newsboat, I&rsquo;m sure it was from a blog or a video,but it definitely ticked all the boxes I wanted in an RSS reader.</p>
<ul>
<li><input checked="" disabled="" type="checkbox"> Easy to use</li>
<li><input checked="" disabled="" type="checkbox"> Not dependent on a web frontend and not cloud-based</li>
<li><input checked="" disabled="" type="checkbox"> Minimalist</li>
<li><input checked="" disabled="" type="checkbox"> CLI focused</li>
<li><input checked="" disabled="" type="checkbox"> Easy to incorporate into scripts</li>
</ul>
<p>Newsboat has now become a part of my daily routine and I can quickly catch up with all my sites and blogs without leaving the terminal.</p>
<p>If you have been reading the Newboat site the requirements, you may have noticed that this is a Linux only package, what if you are using Windows? Well, your in luck, using <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">WSL</a> You can install Newsboat like any ol' regular Linux distro package.</p>
<h2 id="quick-rundown-of-using-newsboat">Quick Rundown of using Newsboat</h2>
<p>The Newsboat site does have some good <a href="https://newsboat.org/releases/2.22.1/docs/newsboat.html">documentation</a> but I would still like to show how I normally use Newsboat.</p>
<p>When you install Newsboat it will create a new directory at <code>~/.newsboat </code>  there is a file called <code>urls</code>, this is where you put each RSS URL you want to follow in here, one line per entry.</p>
<p>You can write a custom config file for Newsboat to use, you can name it whatever it doesn&rsquo;t need a specific file type either. I have mine saved as <code>newsboat_config</code>  all the config file options are outlined on the docs. Now Newsboat wont automatically use the config file every time you launch it, you do have to specify the config file when you run it, example : <code>newsboat -C ~/.newsboat/newsboat_config</code>  It would be wise to set this as an alias on your .bashrc or .zshrc. below is my alias</p>
<p><code>alias newsboat='newsboat -C ~/.newsboat/newsboat_config'</code></p>
<p>As an example config file, below is my config file if you do amass a large list of URLs, I  do highly recommend upping the reload-threads, this will make a significant  difference in speed when pulling the articles.</p>
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">auto-reload yes
download-retries <span class="m">4</span>
error-log ~/.newsboat/error.log
keep-articles-days <span class="m">90</span>
notify-xterm yes
refresh-on-startup yes
reload-threads <span class="m">6</span>
save-path ~/saved_articles

<span class="c1"># srcery newsboat</span>
<span class="c1"># https://github.com/srcery-colors/srcery-shell</span>

<span class="c1"># interface colors {{{</span>

color info              color15 color235 bold
color listfocus         color10 color237
color listfocus_unread  color9  color237
color listnormal        color7  default
color listnormal_unread color15 default

<span class="c1"># }}}</span>
</code></pre></div><h2 id="closing-thoughts">Closing thoughts</h2>
<p>I do plan on making another blog on how to make a script that shoots out articles daily as a Teams webhook, as it turns out I am now using Newsboat for my job to aggregate security news. But I wanted to introduce the beauty of Newsboat first before I release that.</p>
<p>If you have any questions or concerns please feel free to <a href="mailto:angel.alvarez@alva.systems">email me</a>.</p>
<p>Thanks.</p>
]]></content>
        </item>
        
        <item>
            <title>Free and Open Source Next-Generation Firewall With OPNsense and Sensei</title>
            <link>/posts/free-and-open-source-next-generation-firewall-with-opnsense-and-sensei/</link>
            <pubDate>Sun, 27 Sep 2020 16:26:23 -0700</pubDate>
            
            <guid>/posts/free-and-open-source-next-generation-firewall-with-opnsense-and-sensei/</guid>
            <description>If you work professionally in information security or in networking you more than likely know what a Next-generation Firewall (NGFW) is. NGFWs are mainly used in the enterprise world, the problem is, the costs of these NGFWs are also enterprise level. Hardware and license costs of these enterprise firewalls make them unfeasible for small/medium businesses and home network enthusiast. This all changes thanks OPNsense and Sunny Valley&amp;rsquo;s Sensei.
This blog post wont be extremely technical, I just feel that OPNsense and Sensei are not getting the attention they deserve and I wanted to make people aware of this amazing partnership that brings NGFW capabilities to small/medium businesses and the home.</description>
            <content type="html"><![CDATA[<p><img src="../../images/MOSHED-2020-9-22-0-26-39-min.jpg" alt="MOSHED-2020-9-22-0-26-39-min"></p>
<p>If you work professionally in information security or in networking you more than likely know what a Next-generation Firewall (NGFW) is.  NGFWs  are mainly used in the enterprise world, the problem is, the costs of these NGFWs are also enterprise level. Hardware and license costs of these enterprise firewalls make them unfeasible for  small/medium businesses and home network enthusiast. This all changes thanks OPNsense and Sunny Valley&rsquo;s Sensei.</p>
<p>This blog post wont be extremely technical, I just feel that OPNsense and Sensei are not getting the attention they deserve and I wanted to make people aware of this amazing partnership that brings NGFW capabilities to small/medium businesses and the home.</p>
<h2 id="what-the-heck-is-a-ngfw-anyway">What the Heck is a NGFW anyway?</h2>
<p>The short and sweet, Next Generation Firewalls are relatively new compared to &ldquo;traditional&rdquo; network firewalls which are usually a <a href="https://en.wikipedia.org/wiki/Stateful_firewall">stateful firewall</a>. NGFWs bring a plethora of advanced security features which usually include: Web filter, App control, Intrusion Detection and Intrusion Prevention (IDS/IPS) and TLS/SSL Inspection and also provide more visibility into your network. This is not at all a  definite list of capabilities, some NGFW vendors offer more or less features.</p>
<h2 id="opnsense">OPNsense</h2>
<p><img src="/../images/xopnsense.png" alt=""></p>
<p>Now we get into the meat of it. <a href="https://opnsense.org/about/about-opnsense/">OPNsense</a> has been around for a while, they are a fork of the  popular PFsense firewall software. OPNsense has a great doc listing the reasons for the <a href="https://docs.opnsense.org/history/thefork.html">fork</a>, I can personally say I agree with every point listed on that doc.</p>
<p>I have been using OPNsense for about 3 months and have been loving it. OPNsense in my opinion has a stronger focus on making this firewall software more secure, capable and modern. I have used PFsense for a while before I switched to OPNsense, for some reason I&rsquo;ve never fully enjoyed it to be honest. OPNsense also supports a fantastic ecosystem of plugins, this is how Sensei is installed which greatly enhances the core functionality of OPNsense, I will get into these features shortly.</p>
<p>My personal favorite benefits of using OPNsense.</p>
<h3 id="reasons-i-3-opnsense">Reasons I &lt;3 OPNsense</h3>
<ul>
<li>Open Source</li>
<li>Installed on <a href="https://www.hardenedbsd.org/content/about">HardenedBSD</a></li>
<li>Supports <a href="https://www.wireguard.com/">WireGuard</a></li>
<li>Modern firewall capabilities</li>
<li>NGFW Capabilities with Sensei</li>
<li>Can be installed on almost any type of hardware
<ul>
<li>I have mine installed on a old Dell Optiplex</li>
</ul>
</li>
</ul>
<h2 id="sensei">Sensei</h2>
<p><a href="https://www.sunnyvalley.io/sensei/">Sensei</a> is developed by Sunny Valley Networks and is installed on your OPNsense firewall via plugin, which then enables NGFW features. I believe they are planning on releasing on more platforms, but as of right now it is only on OPNsense.</p>
<p>Sensei does offer different levels of subscription tiers, each with its own additional features, but they do have free community edition, this is what I am currently using. To be honest the license for the additional tiers are priced pretty good for the features you get though.</p>
<h3 id="sensei-features">Sensei Features</h3>
<p>With Sensei installed you can now:</p>
<ul>
<li>
<p>Block/Monitor, even at granular levels</p>
<ul>
<li>Apps and app categories</li>
<li>Websites and website categories</li>
</ul>
</li>
<li>
<p>View and receive  great reports on network activity</p>
<ul>
<li>Schedule reports to be emailed to you</li>
<li>See users/IP&rsquo;s</li>
<li>See top categories</li>
<li>Get detailed session reports/logs</li>
</ul>
</li>
<li>
<p>Sensei&rsquo;s database of threats is periodically updated always giving you protection on newly observed threats.</p>
</li>
</ul>
<h3 id="caveat">Caveat</h3>
<p>There is one caveat that I do want you to be aware of, I can be sure I will receive hate mail for not mentioning it.  OPNsense is 100% open source, Sensei is <strong>not</strong> 100% open source, per their <a href="https://help.sunnyvalley.io/hc/en-us/articles/360025100613-FAQ#h_f061e6db-2ce9-4a3f-ae63-18cecc8806d6">FAQ </a></p>
<p>&quot;</p>
<p><strong>Is Sensei open source?</strong></p>
<p>Sensei consists of two modules:</p>
<ul>
<li>PHP Code &amp; Python Scripts which provide the Web User Interface Functionality. <strong>This part is open source.</strong></li>
<li>The Packet Engine coded in C++. <strong>This part is closed source</strong>.</li>
</ul>
<p>&quot;</p>
<p>With that being said please don&rsquo;t let this be the reason you will not use it. Sensei is a powerful feature-set that is available for free on a security focused open source firewall.</p>
<p>Pleas feel free to <a href="mailto:aa@aztek.xyz">email</a> me or DM me on <a href="https://twitter.com/aztekxyz">Twitter</a> if you would like to contact me.</p>
]]></content>
        </item>
        
        <item>
            <title>¡Hola Mundo!</title>
            <link>/posts/hello-mundo/</link>
            <pubDate>Tue, 08 Sep 2020 21:02:16 -0700</pubDate>
            
            <guid>/posts/hello-mundo/</guid>
            <description>Intro Hello and welcome to my first blog post. This is where I will try to post some interesting or noteworthy ideas that come across my mind. I&amp;rsquo;m pretty sure my posts will be pretty infrequent, but I will try to make some interesting posts. Please feel free to follow my RSS if you would like to be informed when I make a new post.
Expected Topics  Security: Network Security, Dev Secops and other InfoSec musings Linux Python Sustainable tech usage Other random stuff  About Me I guess a little about me would be good, My name is Angel Alvarez, I am currently a &amp;ldquo;SOC Engineer&amp;rdquo; at a reasonably sized data center company.</description>
            <content type="html"><![CDATA[<p><img src="/../images/compressed_pexels-valentin-antonucci-1275393_8.jpg" alt="pexels-valentin-antonucci-1275393" title="A picture of someone tossing a globe"></p>
<h2 id="intro">Intro</h2>
<p>Hello and welcome to my first blog post. This is where I will try to post some interesting or noteworthy ideas that come across my mind.
I&rsquo;m pretty sure my posts will be pretty infrequent, but I will try to make some interesting posts. Please feel free to follow my <strong><a href="https://angel-alvarez.dev/posts/index.xml">RSS</a></strong> if you would like to be informed when I make a new post.</p>
<h2 id="expected-topics">Expected Topics</h2>
<ul>
<li>Security: Network Security, Dev Secops and other InfoSec musings</li>
<li>Linux</li>
<li>Python</li>
<li>Sustainable tech usage</li>
<li>Other random stuff</li>
</ul>
<h2 id="about-me">About Me</h2>
<p>I guess a little about me would be good, My name is Angel Alvarez, I am currently a &ldquo;SOC Engineer&rdquo; at a reasonably sized data center company.</p>
<p>I&rsquo;ve recently have taken coding more seriously now and I am finally getting the concepts and able to write some very amateur code, but hey, it works!
I&rsquo;ve been learning Python but recently I&rsquo;ve also been playing around with Rust, and so far been loving it.</p>
<p>I have nothing really else to say, if you would like to send me a message please feel free to do so with <strong><a href="mailto:aa@aztek.xyz">e-mail</a></strong> or DM me on <strong><a href="https://twitter.com/AztekXYZ">Twitter</a></strong></p>
]]></content>
        </item>
        
    </channel>
</rss>
