<?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 chris herrera on Medium]]></title>
        <description><![CDATA[Stories by chris herrera on Medium]]></description>
        <link>https://medium.com/@chris.herrera?source=rss-240b9668514e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tSA5ZfqxYzni0xUZ.</url>
            <title>Stories by chris herrera on Medium</title>
            <link>https://medium.com/@chris.herrera?source=rss-240b9668514e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:41:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chris.herrera/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[This is Why You Should Use Snowflake for Security Analytics]]></title>
            <link>https://medium.com/hashmapinc/this-is-why-you-should-use-snowflake-for-security-analytics-dd6b5f316a05?source=rss-240b9668514e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd6b5f316a05</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[chris herrera]]></dc:creator>
            <pubDate>Fri, 07 Jun 2019 18:09:46 GMT</pubDate>
            <atom:updated>2019-06-12T11:11:23.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOoWAs8dVB5G1kU1lnOEYg.jpeg" /></figure><p>I will admit it, when asked what you should use as the core technology to understand your organization’s cybersecurity threats, a data warehouse is not usually the first tool that comes to mind.</p><p>Typically your instinct will push you towards traditional SIEM (Security Information and Event Management) systems, after all these systems are purpose built to do this type of work for you.</p><p>However, let’s take a step back for a second. SIEMs are great at funneling data in and providing you with a base set of rules that work for everyone, but what ultimately ends up happening is that you get lost in an ocean of false positives that your poor SecOps team now has to filter through, instead of doing more important stuff like ensuring real problems are addressed, and improving your overall security footing.</p><p>Why is this though? What is missing that is causing all of these false positives? Context.</p><h3>Context</h3><p>The problem with traditional SIEMs is that they are missing context. For example, is this a Sandbox machine, is that user a DevOps user who is meant to run unknown applications, is this security group supposed to be open because it’s part of a DMZ?</p><p>Adding this context to a traditional SIEM is a challenge to maintain as generally the SIEM is managed by a different group than the one who is using AWS, for example. This leads to inconsistencies in context as viewed from the two groups, thus leading to more false positives, and unclear remediation paths (and sad faces).</p><blockquote>If only I could join my asset data, to my log data, to my organizational and HR data. This is starting to sound like a data problem!</blockquote><h3>Security is a Data Problem</h3><p>Like everything else in the data world, the volume of security data is increasing, and its value is multiplied when it is joined with other contextual data sets. This is really where a data warehouse becomes much more relevant in the security analytics space. However, this has traditionally been a daunting task with the need to model the events up front, integrate all of the data sources, and be able to deal with the semi-structured nature of most of the events. There is additional complexity when you are trying to analyze across SaaS and Cloud platforms, as their data is generally API driven rather than log file driven.</p><h3>Enter Snowflake Cloud Data Warehouse</h3><p>With Snowflake’s native ability to handle semi-structured data, it is a natural choice for analyzing your security data. However, the feature that makes this even more powerful is <a href="https://docs.snowflake.net/manuals/user-guide/data-load-snowpipe-auto-s3.html"><strong>Snowpipe with auto ingest</strong></a>, <a href="https://docs.snowflake.net/manuals/user-guide/streams.html"><strong>streams</strong></a> and <a href="https://docs.snowflake.net/manuals/user-guide/tasks.html"><strong>tasks</strong></a>. Setting up CloudTrail from AWS now becomes a 5 minute exercise. To set this up the solution would look like the figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ry-x-RbQsWUG-RksaO_9aA.png" /><figcaption>Snowflake data pipeline for CloudTrail</figcaption></figure><p>In the diagram above, CloudTrail is configured to write to an S3 bucket, a pipe is created with auto ingest to write the data to a landing table. Because the source data is heavily nested JSON, a stream is used to capture the changes from the landing table and a task is utilized to extract key values for indexing and flatten the JSON. This task makes read much more efficient by:</p><ol><li>Allowing Snowflake to prune depending on common predicates that are extracted by the task</li><li>Removing a lateral_flatten step for each row read</li></ol><p>So with out any external tooling to manage, a robust ELT pipeline is created to analyze cloud trail logs. The asset information can be pulled in in much the same manner, however, the AWS configuration API’s need to be queried with a set of lambda functions using <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html">Boto3</a> (more on this in the next post), and written to an S3 bucket where the same approach can be followed. Now you might be thinking about the EM side of SIEM, enter SnowAlert.</p><h3>SnowAlert</h3><p>We have <a href="https://medium.com/hashmapinc/snowalert-data-driven-security-analytics-using-snowflake-data-warehouse-3f046b779d54"><strong>talked about SnowAlert before</strong></a>, but I wanted to put it in the context of this SIEM replacement strategy. SnowAlert allows a user to create alerts and violations. Alerts are activities that require attention at this minute, or said another way, events that were triggered as the result of some action. Examples of alerts could be:</p><ul><li>Modifications made to a CloudTrail configuration</li><li>Multiple access denied events within a specified time frame</li><li>Login by a terminated employee</li></ul><p>Violations, on the other hand, are configuration issues. These are situations that increase your surface area of attack, or reduce your overall visibility. These could be issues like:</p><ul><li>EC2 instance not shipping logs</li><li>Wide open security group</li><li>Cloud account not shipping logs</li><li>EC2 instance not tagged according to policy</li></ul><p>SnowAlert allows you to make use of all of the data you are collecting by acting on it. While this is good, because you can join across all your contextual data to generate these violations and alerts; one very important feature is that you can suppress alerts and violations as well. Examples of this would be:</p><ul><li>Wide Open Security group on 443 is fine for a DMZ for web hosting</li><li>Unknown package installed is fine for an EC2 instance tagged as sandbox</li><li>Admin without MFA is fine for a service account that does not have that capability</li></ul><p>The best part about all of this is that the rules (violations, alerts, and respective suppressions) are defined in SQL, a clean and clear way to define, describe and model your rules. Additionally, SnowAlert integrates with Slack and Jira for event management as well.</p><h3>Data Sharing</h3><p>One key piece of contextual information that has not been talked about yet, is how do I integrate with curated lists of <a href="https://en.wikipedia.org/wiki/Indicator_of_compromise">IOC’s (Indicators of Compromise)</a>, where do I get them from.</p><p>This is where Snowflake <a href="https://www.snowflake.com/use-cases/modern-data-sharing/"><strong>Data Sharing</strong></a> and <a href="https://www.snowflake.com/data-exchange/"><strong>Data Exchange</strong></a> come in. You can now get a list of IOC’s as if you were getting an App from the AppStore. The best part is it just shows up as another table, that gets updated without you having to do anything. This means you don’t have to stay on top of the latest security campaigns, so long as you have a share setup from a source that does.</p><p>While pulling in data is fantastic, being able to have experts analyze your data for weak signals, and threats that you might be missing is a huge piece to the puzzle. Creating a data share with a service like <a href="https://hunters.ai/">Hunters.ai</a> allows you to not only centralize your security analytics, but ensure you have some of the most advanced threat hunters in the world ensuring your infrastructure is secure.</p><h3>Conclusion</h3><p>Security, now more than ever, is a data problem. Especially in the cloud-native space, the volume and variety of data can become overwhelming. Using Snowflake and SnowAlert as an SIEM replacement, not only allows you to analyze and alert on your security data in context, thus reducing false positives; but it allows you to ensure that you can build your context from the world leaders in threat intelligence and threat hunting.</p><p>The unique features in Snowflake that allow for simple data pipelines, and controlled sharing (both incoming and outgoing), truly create an impressive replacement option that is both powerful and cost conscious.</p><p>While this post was AWS focused, the true value of this solution is that it is Cloud/SaaS provider agnostic. It can be used to monitor AWS, GCP, Azure, GitHub, Slack, Okta and many more services in the same manner.</p><p>At Hashmap, we are well versed in using Snowflake and SnowAlert for security analytics because we do it not just for our customers but for ourselves as well. If you would like to have a discussion on what your next-generation security analytics strategy should look like, don’t hesitate to get in touch!</p><p><a href="https://www.hashmapinc.com/snowflake-security-analytics">Hashmap | Security Analytics Services for Snowflake</a></p><p>Feel free to share on other channels and be sure and keep up with all new content from <a href="https://medium.com/hashmapinc"><strong>Hashmap</strong></a>.</p><p><strong><em>Chris Herrera</em></strong><em> is Chief Technology Officer at </em><a href="https://www.hashmapinc.com/"><strong><em>Hashmap</em></strong></a><em> working across industries with a group of innovative technologists and domain experts accelerating high value business outcomes for our customers, partners, and the community. You can tweet Chris </em><a href="https://twitter.com/cherrera2001"><strong><em>@cherrera2001</em></strong></a><em> and connect with him on </em><a href="https://www.linkedin.com/in/cherrera2001/"><strong><em>LinkedIn</em></strong></a><em> and also be sure to catch him on Hashmap’s Weekly </em><a href="https://soundcloud.com/user-646370126-449306361"><strong><em>IoT on Tap</em></strong></a><em> Podcast for a casual conversation about IoT from a developer’s perspective.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd6b5f316a05" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hashmapinc/this-is-why-you-should-use-snowflake-for-security-analytics-dd6b5f316a05">This is Why You Should Use Snowflake for Security Analytics</a> was originally published in <a href="https://medium.com/hashmapinc">Hashmap, an NTT DATA Company</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: DLT Journey, the Blockchain Primer]]></title>
            <link>https://medium.com/@chris.herrera/part-1-dlt-journey-the-blockchain-primer-eeabc016df81?source=rss-240b9668514e------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeabc016df81</guid>
            <category><![CDATA[dlt]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[hyperledger]]></category>
            <dc:creator><![CDATA[chris herrera]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 15:27:06 GMT</pubDate>
            <atom:updated>2018-07-17T15:29:45.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6l7eL_Un_zN6El4OF69Hzg.png" /></figure><p>I was debating the implementation of a blockchain solution with a co-worker yesterday, and it brought up some interesting points that I thought I would attempt to work through in this post. Specifically when talking about a supply chain backend idea, we had a bit of back-and-forth on private vs public blockchains (essentially Hyperledger vs Etherium). This will be the first part in a series of posts that tries to go through the understanding of how to implement DLT’s or Blockchain as a part of a larger application architecture.</p><h4>First, a Bit of Background</h4><p>Hyperledger and Etherium both fall under a class of technologies known as Distributed Ledger Technologies (DLT). I mention this because there is a bit of confusion around terminology in this space. Blockchain was the first fully-functional DLT and basically the only kid on the block, so it’s why Blockchain became the Kleenex of DLT’s. To drill it in one last time, Blockchain is to DLT as car is to vehicle. This is an important distinction, because classing everything as a blockchain will limit your ability to really determine what a DLT could be and how it could be used to meet the requirements of a specific use case.</p><p>Currently there are several implementations of DLT’s:</p><p><strong>Ethereum</strong> <a href="https://www.ethereum.org/">https://www.ethereum.org</a></p><p><strong>IOTA</strong> <a href="https://www.iota.org/">https://www.iota.org</a></p><p><strong>RaiBlocks</strong> (or NANO now): <a href="https://raiblocks.net/">https://raiblocks.net</a></p><p><strong>Peaq</strong> <a href="https://www.peaq.io/page.html">https://www.peaq.io/page.html</a></p><p><strong>Hyperledger </strong>(a program containing several implementations)<strong>: </strong><a href="https://www.hyperledger.org/">https://www.hyperledger.org</a></p><p>For the rest of this post I will focus the discussion on Etherium and Hyperledger Fabric.</p><h4>Ethereum</h4><p>The first thing I have to say is that the Ethereum community has done a good bit of documentation and lowering the friction to onboard. Essentially it is a public blockchain implementation. It is based around the creation of smart contracts that define rules, penalties, and enforcement of the defined obligations. That was a bit of a mouthful, so what is it… in essence it is a scripts or stateful distributed applications that are stored in the blockchain for execution later. These scripts run in the Etherium Virtual Machine and are paid for using “gas”. So this is a thing… let’s break this down just a bit (I’m going to stay high level though):</p><p><strong>Etherium</strong>: A distributed computer that stores smart contracts (not 100% correct, but will be for the purposes of this high level glossary).</p><p><a href="http://gavwood.com/Paper.pdf"><strong>EVM</strong></a>: The portion of Etherium that actually executes a smart contract. Every operation that is executed in the EVM is executed in EVERY NODE of the network.</p><p><a href="https://ethereum.gitbooks.io/frontier-guide/content/costs.html"><strong>Gas</strong></a>: The means by which resources are regulated for the running of the smart contract in an EVM. Each operation that a smart contract based transaction requires (disk reads/disk writes/cryptographic primitives/invocation of other smart contracts via calls) has a cost associated with it. This cost is measured in units of gas.</p><p><strong>Ether</strong>: The currency used to pay for Gas. The conversion from Gas to Ether changes dynamically based on the market of the ……. FILL IN. This ether is taken from the Etherium account sending the transaction. Don’t worry, there is a gas limit parameter to safe-guard against crazy 2 am programming sessions that result in so many operations that you deplete all your ether. To obtain either, there are a number of different ways, but you can trade it, purchase it</p><h4>HyperLedger</h4><p><a href="https://www.hyperledger.org/">Hyperledger</a> is a collection of projects at the Linux Foundation. The main focus of the projects is the “Business Blockchain Framework”. For this discussion I will Briefly break down the projects and what they are:</p><p><a href="https://www.hyperledger.org/projects/fabric"><strong>Fabric</strong></a><strong>: </strong>This is really the basis for the other projects. It is a foundational technology for incorporating blockchain into other applications. It has a very extensible set of components for things such as membership and consensus services. Their smart contracts are called “chain code” and are (like Etherium smart-contracts) the logic that is run on the chain. It provides for things like encryption, permissions, and other features. Fabric also provides for a feature called “channels” that can provide fine-grained access controls over transactions (for example in B2B scenarios)</p><p><a href="https://www.hyperledger.org/projects/sawtooth#distributed-ledger-benefits"><strong>Sawtooth</strong></a><strong>: </strong>Sawtooth can actually provide a permissioned or permissionless blockchain network (vs Fabric which is just permissioned). It provides PoET (Proof of Elapsed Time) consensus. In addition to the (potentially) more open access paradigms afforded by Sawtooth, the network can also scale to a very large network. As for the smart-contract implementation, they support the Ethereum Soliditiy based smart-contracts (via <a href="https://sawtooth.hyperledger.org/docs/core/nightly/0-8/transaction_family_specifications/sawtooth_burrow_evm_family.html">SETH</a> and <a href="https://www.hyperledger.org/projects/hyperledger-burrow">Burrow</a>). One other major feature of Sawtooth is the concept of transaction batches, which means that a batch completes all together or not at all. Fabric, however, utilizes a kafka block.</p><p><strong>Indy</strong>: The ledger for identity. This is a purpose-built DLT for decentralizing identities. The idea behind this one is that there is no central registrar of identity, thus allowing user to be in control of their identity rather than systems like Oauth identity providers such as Facebook, Google, etc…</p><p><strong>Iroha</strong>: This is the platform meant for integration into the enterprise architecture. It provides a permission-based blockchain with BFT (Byzantine fault-tolerant) consensus. It is fundamentally Asset based rather than smart contract based. It is aimed at reducing the overall friction to implementing the blockchain in an enterprise scenario, and having lower time to value.</p><h4>On to the Questions</h4><ol><li>What is the point of a private block chain?</li></ol><p>This is a good point, public blockchains and other DLT’s security comes from the concept of proof-of-work, which makes it mathematically impossible to fake or reverse transactions without miners colluding, using the current state-of-the-art.</p><p>However, in a private scenario, the chain, the security is only as good as the entities validating the transactions. There can be, but sometimes no mathematical guarantees behind the irreversibility of transactions on a private blockchain.</p><p><a href="https://freedom-to-tinker.com/2015/09/18/private-blockchain-is-just-a-confusing-name-for-a-shared-database/">So is a private blockchain just a shared database</a>…the parallels are there for sure, however, private blockchains and DLTs, in many cases, still utilize <a href="https://en.wikipedia.org/wiki/Merkle_tree">merkel trees</a> and ensure non-valid transactions are not added to the ledger. Additionally, in many implementations blocks are still validated using something like <a href="https://en.wikipedia.org/wiki/Byzantine_fault_tolerance">BFT</a>.</p><p>So what is the answer to this question: A private block chain provides higher levels of error checking, and the tooling around smart-contracts (or in the case of Iroha…assets), thus providing some amount of value over a shared database. That being said, you must look into the consensus models, transaction validity implementation, and membership models to make sure that the choice of tech is a fit.</p><p>2. You can still encrypt the information on a public chain like Etherium, so why not just do that?</p><p>This is true, however, let’s deconstruct how you store data in a public chain like etherium. Would I really want to store, let’s say a gigabyte of data…hmmm at the USD to Ether To Gas conversion…at the time of writing, 1 GB would cost about 625,000,000,000 gas (not really possible just due to the block limit, but just for funzies) at 4 Ether = about $750k / GB….sooooooo thats not a great idea. Why did we do this…because blockchain is not meant to do distributed storage (Like IPFS or Storej if you want to be one of the cool kids), it does verifiable transaction tracking (I’ve been asked this question a lot). So if you want to encrypt the transaction, you are looking at doing this off-chain…which is just something else you will have to write.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeabc016df81" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>