<?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 Marc-Henry GEAY on Medium]]></title>
        <description><![CDATA[Stories by Marc-Henry GEAY on Medium]]></description>
        <link>https://medium.com/@mhgeay?source=rss-86a01cbb8ffb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3aJT1MjAYNDxal01mTaFMA.png</url>
            <title>Stories by Marc-Henry GEAY on Medium</title>
            <link>https://medium.com/@mhgeay?source=rss-86a01cbb8ffb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:18:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mhgeay/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[When Security meets FinOps, so SecFinOps]]></title>
            <link>https://medium.com/linkbynet/when-security-meets-finops-so-secfinops-35f50ff12dd3?source=rss-86a01cbb8ffb------2</link>
            <guid isPermaLink="false">https://medium.com/p/35f50ff12dd3</guid>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[green-it]]></category>
            <dc:creator><![CDATA[Marc-Henry GEAY]]></dc:creator>
            <pubDate>Fri, 05 Nov 2021 17:32:08 GMT</pubDate>
            <atom:updated>2021-11-05T17:32:08.841Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud is elastic, but not your budget</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdsEQ3FzJ0akFCGdRCUFUg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><em>Co-written with my teammates </em><a href="https://medium.com/u/29507f3b844f"><em>Charles Mure</em></a><em> and </em><a href="https://medium.com/u/193ec576c7dd"><em>Antoine Paris</em></a><em>.</em></p><h3><strong>TL ;DR</strong></h3><p>The implementation of all cloud security best practices mentioned in standard frameworks ends up taking 16% to 49% of the total application budget.</p><p>We believe this cost is irrational and can be significantly improved.</p><p>We found ways to save 18% to 54% of Cloud Security cost without impacting the risk coverage.</p><h4><strong>How we did it?</strong></h4><p><strong>We decided to move away from standard compliance frameworks. Instead, we rethought security measures from the ground up with realistic risk scenarios for Cloud Environments <em>#BackToFoundamentals</em>.</strong></p><p>We synthetized our approach in a new method that we called <strong>COSMIRC: Cloud Optimized Security Measures with Identical Risk Coverage.</strong></p><h3><strong>A short story on FinOps</strong></h3><p>It all started with a discussion with our colleagues on the FinOps team about their work to help optimize security services; it turns out that cloud security services typically account for 10% to 15% of the cloud bill, with spikes up to 25% being hard to justify…</p><p>According to our colleagues, the reasons for these unexpected costs can be explained by an information systems security policy that is not adapted to the specificities of the cloud, a lack of technology intelligence and visibility on the real cost of security services, and security services that are activated but under-utilized or forgotten.</p><p>Following these observations, we wanted to confirm them with a controlled experiment, and, if they were true, understand the mechanics behind these costs while trying to find ways to optimize them. For that, we tried to answer the following questions:</p><ul><li><strong>Can we demonstrate with a controlled experiment the orders of magnitude of the cost of security on a cloud application observed by the FinOps team?</strong></li><li><strong>Can we optimize the cost of security for a cloud application while maintaining the same level of risk coverage?</strong></li></ul><h3><strong>Our Lab with a Demo app</strong></h3><p>Following our lines of thought, we designed and built a demonstration application based on usual architecture patterns observed at our customers. This application offers a B2B service for industrial customers who required custom-made equipment.</p><p>It’s composed of three main parts : the <strong>e-commerce website</strong> that handle customer orders with <a href="https://en.wikipedia.org/wiki/Computer-aided_design">Computer-aided design</a> (CAD) files ; then an <strong>analysis backend</strong> that controls compliance and technical aspects of CAD files, get metrics from orders ; finally a <strong>synchronizing step</strong> to push order details and CAD file to the On-Premise enterprise resource planning (ERP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLZ1iNYApJTBC7hHho3g2A.png" /><figcaption>Our Demo App architecture</figcaption></figure><p>This application manage some customer data: personal information (PII) and internal corporate equipment details. To protect these sensitive assets, we applied Cloud security best practices and defense in depth to our hybrid architecture by following five cloud-common pillars :</p><ol><li><strong>Infrastructure / perimeter security</strong> : defense in depth of network, hardened compute resources like VM and functions (managed-script runtimes) and vulnerability scanning.</li><li><strong>Data protection</strong> : all data are encrypted at rest and in transit with Cloud-managed service, ensure that all application network flows are private (transit inside the Cloud network).</li><li><strong>Identity and access management</strong> : use Cloud-IAM service, block lifetime credentials/tokens, apply the least privilege principle for all systems involved with Cloud services and On-Prem ERP.</li><li><strong>Detection</strong> : identify main cloud misconfigurations and detect suspicious behaviors on cloud management plane.</li><li><strong>Resilience</strong> : assure a high availability of services (website) and integrity of customer data (CAD files) with cross-region replication.</li></ol><h4><strong>Build of our financial analysis model</strong></h4><p>To confirm the FinOps findings of our colleagues, we choose to rely on one of the most important Cloud providers, AWS. We started to census all cloud resources used and arranged them into production and security services. We mapped our application components with more than 65 AWS price items to get a first picture of the monthly cost for one customer order.</p><p>We improved our simulation to get dynamically the precise costs based on any order amount. The following graph shows the evolution of production and security related monthly costs depending to the number of orders and the “so-wanted” <strong>production vs security ratio</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HEm4oCeUwWj01NDDaL8jxQ.png" /><figcaption>Demo app cost with production vs security ratio</figcaption></figure><blockquote><em>Costs of some security services explode on high traffic applications</em></blockquote><h4><strong>Our demo app cost insights</strong></h4><p>Our simulation show that the <strong>production/security ration increases non linearly with the number of customer orders.</strong> It reaches up to 49% with 100,000 monthly orders. The results confirm those of the FinOps team.</p><h3><strong>Moving to a SecFinOps approach</strong></h3><p>From these surprising findings, we draw a hypothesis that the problem was caused by the three following factors:</p><ol><li>Cloud-based security services are multiplying and telescoping, creating opportunities for optimization.</li><li>There is a decoupling between the cost of security measures and the severity of the risk covered, which creates opportunities for reallocation based on risk prioritization.</li><li>Traditional Risk Analysis methods rarely include discussions around the cost of security measures.</li></ol><p>From this hypothesis, we proposed a <strong>new methodology for risk analysis of Cloud applications </strong>that include discussion around the cost of security measures. The goal of this methodology is to help Security Practitioners to find opportunities for cost optimizations of security measures but without changing the risk coverage of the application. We called it <strong>COSMIRC: Cloud Optimized Security Measures with Identical Risk Coverage.</strong></p><h4><strong>So how did we build this SecFinOps methodology?</strong></h4><p>We started from a standard risk analysis method, and then we added a few user stories to it. We identify the following:</p><ul><li>As a Security Practitioner, I want to be able to see the impact of a security measure on the Cloud bill for the application.</li><li>As a Security Practitioner, I want to be able to visualize the cost associated with the mitigation of a specific risk scenario.</li><li>As a Security Practitioner, I want to be able to select a security measure to cover a risk scenario in a pre-defined set of cloud security services.</li></ul><p>Then, we ask ourselves which data sources we will be mandatory to build our method. We identify the following: list of realistic cloud risk scenarios, catalog of technical security measures available on each CSP and knowledge of Cloud Services cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVcFqP5wZA87pmpydNwMkg.png" /><figcaption>Pragmatic SecFinOps methodology</figcaption></figure><p>We want to give you some practical tips to help you to consolidate your data sources if you want to do it yourself. Here’s our recommendations.</p><p>Firstly, to build our Cloud Risk database with realistic scenarios we relied on:</p><ul><li>Well-known technical source of attack tactics on Cloud environments, the <a href="https://attack.mitre.org/matrices/enterprise/cloud/">MITRE ATT&amp;CK matrix</a> for Cloud providers.</li><li>Historical data of public Cloud security incidents.</li><li>Cloud Security Expert Panelist to refine frequency of risk scenarios. Creating an internal Cloud Security Expert panel is a well-known technique in quantify risk management to increase the accuracy of our estimations when data is very sparse (which is the case with Security Incidents that are most of the time private). If you want to know more about this approach, I can highly recommend articles on Medium from Ryan McGeehan like <a href="https://magoo.medium.com/quantifying-your-unknown-risks-4ff51df65e0a">this one</a>.</li></ul><p>Then, to build our list of possible technical security measures for each standard risk scenario, we relied on best practices from Cloud Security Providers and associated documentation on Security configuration. Also, we collected some insights from our Cloud Security Expert panel.</p><p>Finally, to collect information regarding cost of Cloud security services, we recommend the usage of “Cost calculator” on Cloud Service Providers (CSP), the analysis of your actual cloud bill report on CSP or a commercial FinOps tools.</p><p>Also, we knew that if we wanted a new method to be used by practitioners it must be built with key adoption principles in mind. We think that there are a few criteria’s (others than solving a real problem) that a method must have to facilitate adoption.</p><ol><li><strong>Ease of communication: </strong>your method must produce findings that are easy to understand for non-security people.</li><li><strong>KISS, Keep It Simple Stupid:</strong> try to avoid too early over-optimization or complex procedure/operation so that scaling it at an organizational level is easier.</li><li><strong>Low Gap: e</strong>nsure that the new method present only small change with the actual operational flow (for risk analysis).</li></ol><h4><strong>From method to tooling</strong></h4><p>We conducted a first implementation our COSMIRC methodology. For now, we kept it simple by re-using an existing Risk Analysis tool on a Spreadsheet that we augmented to include our new features. Currently, we implemented it only for AWS environments, but it can be easily extended to others CSP.</p><p>And we can tell you that the results are very promising!</p><p>In our experiment, <strong>we were able to save 18% to 54% of security cost</strong> with COSMIRC. We were able to make two cost optimization measures without changing the coverage on our main risks: the risk of confidential data compromise and the risk of client’s data lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tBNU8gsd0a0NZNhkSbo1A.png" /><figcaption>Security and production costs after optimizations</figcaption></figure><p>Also, another conclusion we draw form this experiment is that Pareto’s Law seems also applicable to Cloud Security cost optimization. In short, 80% of the cost optimization will be produce by 20% of the efforts (e.g. Update of security measures).</p><p>But exactly, how did we manage to reduce the Cloud Security cost up to 58% App without changing our risk exposure? Let’s see how we did it with a deep dive on one cost optimization.</p><h4><strong>Measure optimization on data lost risk</strong></h4><p>If you want to mitigate the risk of data lost on your Cloud application, many frameworks recommend replicating your data in another Cloud region with <strong>Cross-Region disaster recovery configuration</strong>. The problem is that <strong>this recommendation for resilience and availability is very expensive. </strong>But is it really useful to cover the risk of data lost?</p><p>Maybe to change your perspective on this risk for Cloud environment, we would like you to ask yourself the following question stated by the Cloud Economist Corey Quinn in <a href="https://www.lastweekinaws.com/blog/s3s-durability-guarantees-arent-what-you-think/">his great article on S3 Data Durability</a>.</p><blockquote><strong><em>What are the odds of someone in your organization (accidentally or otherwise) deleting critical data from the wrong bucket or misconfiguring a lifecycle policy to do it for them?</em></strong></blockquote><p>And indeed, the reality in cloud risk management is closer to this statement:</p><blockquote><strong>A bad push to the control plane that doesn’t get caught and destroy all your data in your account is more likely than the complete disaster of a Cloud region, the collapse of a government or the takeover of cloud datacenter by terrorist group.</strong></blockquote><p>Therefore, we identified <strong>two plausible scenarios for the data loss risk</strong> in Cloud environments which are:</p><ol><li>Unavailability of a complete Cloud Region (Low probability)</li><li>Critical data has been deleted by legitimate or illegitimate user leading to business disruption (High Probability)</li></ol><p><strong><em>Side note:</em></strong><em> we know that the second scenario has already been seen in the real world with the CodeSpaces attack in 2014. The company had to shut down his business because a hacker destroyed all their customers data in their Cloud environments. You can read more about this attack </em><a href="https://www.infoworld.com/article/2608076/murder-in-the-amazon-cloud.html"><em>on this article</em></a><em>.</em></p><p>And here, we have an optimization opportunity because these 2 scenarios don’t need the same security measures to be mitigated, and the measures for the second scenario are actually cheaper than the ones for the first scenario. The optimization opportunity is presented the following way on our COSMIRC implementation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkwoWp8aBh_nPdWGakTz7w.png" /><figcaption>Risk analysis with real costs</figcaption></figure><p>During our risk analysis discussion, we choose not to cover the first scenario (Unavailability of a complete Cloud Region) because it is very unlikely to happen, but we choose to mitigate the second scenario with the “Same-region replication in isolated Account” measure. We did not choose the cheapest option to cover the second scenario because we wanted a more versatile solution that is not dependent of service’s specific features like S3 Lock. As mentioned by Corey Quinn: <em>“Backing your data up elsewhere is a great idea if your business is going to have a hard time existing without it.</em><strong><em> “Another region” is a good idea; “another AWS account that nobody from the first account has access to” is a better one;”.</em></strong></p><p>Taking an helicopter view, optimizing data loss prevention looks like this in our model (and yes, we are French and proud 😉):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BNCGeaMvwMohnYO0npdL7g.png" /><figcaption>Optimization effect: risk optimization with lower cost</figcaption></figure><p>This example of optimization on the data loss risk in Cloud Environment is only one of the many possibilities that were highlighted by our experiments and research. Here are some other examples we have found for cost optimization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4jUP9j8fMRQTBVVJM4xtw.png" /><figcaption>Some cost-killer optimizations</figcaption></figure><h3><strong>Lesson Learned</strong></h3><p>In the end, our approach boils down to something very simple:</p><p><strong>We moved away from standard compliance frameworks and rethink security measures from ground up with realistic risk scenario in Cloud Environment <em>#BackToFoundamentals</em>.</strong></p><p>However, one downside of our approach is that moving towards a personalization of security measures to optimize the recurring cost can be seen has incompatible with modern ways of developing Cloud environment. Indeed, with Infrastructure-As-Code approach, we want to standardize our stack (including our security measures) so that we can easily replicate infrastructure for applications and reduce development time, which translate directly to money savings.</p><p>Our opinion is that both approaches are still highly valuable. One way to benefits from both is to keep standardization with Infrastructure as Code with default security for your small-scale applications (and small bill) but apply a fine-grained SecFinOps approach to your large applications that represent most of your spending’s.</p><h3><strong>What’s Next?</strong></h3><p>At this point, our approach optimizes security measures based on the cost variable because we know that this variable is still very important for any company in the world. But we think that the big next challenge will not be only about money. It will be about climate change.</p><p><strong>We, the security experts, have a responsibility to take to ensure that the security tools we deploy are optimized not only to reduce their cost, but especially their carbon footprint.</strong></p><p>Our SecFinOps methodology can provide <strong>opportunities and insights around the carbon footprint of security measures right from the risk analysis phase.</strong> As Accenture shows in <a href="https://www.accenture.com/us-en/insights/strategy/green-behind-cloud">its analysis</a>, the use of the cloud meets the challenges of Green IT. In the future, it would be great to find ways to integrate our approach into “<em>Green Security”</em> strategies with tools such as <a href="https://www.cloudcarbonfootprint.org/">Cloud Carbon Footprint</a> to <strong>help security teams measure, monitor and optimize their carbon emissions from the cloud without impacting their security posture.</strong></p><h4><strong>Our team &amp; contributors</strong></h4><p>Feel free to contact us on LinkedIn!</p><ul><li><a href="https://www.linkedin.com/in/antoine-paris-324267115"><strong>Antoine Paris</strong></a>, Senior Manager &amp; Cloud Security Lead</li><li><a href="https://www.linkedin.com/in/charlesmure"><strong>Charles Mure</strong></a>, Cloud Security Consultant &amp; DevSecOps Lead</li><li><a href="https://www.linkedin.com/in/mhgeay"><strong>Marc-Henry Geay</strong></a>, Cloud Security Consultant &amp; SecFinOps Lead</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35f50ff12dd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linkbynet/when-security-meets-finops-so-secfinops-35f50ff12dd3">When Security meets FinOps, so SecFinOps</a> was originally published in <a href="https://medium.com/linkbynet">LINKBYNET</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberGordon, an aggregator of your cyber reputation checks]]></title>
            <link>https://mhgeay.medium.com/gordon-supports-your-investigation-350bad2d1f2e?source=rss-86a01cbb8ffb------2</link>
            <guid isPermaLink="false">https://medium.com/p/350bad2d1f2e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[reputation]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Marc-Henry GEAY]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 07:40:39 GMT</pubDate>
            <atom:updated>2022-10-20T20:35:06.848Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>The genesis and architecture of my CyberGordon project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xb27gQ-52oB4-XlY2__rMw.png" /><figcaption><a href="https://cybergordon.com/?utm_campaign=medium_post_1&amp;utm_source=medium&amp;utm_medium=textlink">cybergordon.com</a> homepage</figcaption></figure><p><em>This post was originaly published on my </em><a href="https://mhgeay.fr/posts/the-genesis-and-architecture-of-my-cybergordon-project/"><em>blog</em></a><em>.</em></p><p><a href="https://cybergordon.com/?utm_campaign=medium_post_1&amp;utm_source=medium&amp;utm_medium=textlink">CyberGordon</a> quickly provides you threat and risk information about observables such as IP addresses or domain names by querying multiple threat intelligence sources.</p><p>Thanks to each source that provides <strong>free access</strong> to great Threat Intelligence against phishing and malware. Without them, Gordon would have not been there.</p><h4>Why CyberGordon ?</h4><p>Whether it be during my investigations at work or personal surfing sessions, I’m too lazy to <strong>use several sources </strong>to check if a domain or email address is suspicious or malicious. Some <a href="https://osintframework.com/">awesome OSINT tools</a> exist, but I didn’t have one to aggregates them all into one simple web interface. On top of that, I wanted to start by building a usable and useful tool on <a href="https://aws.amazon.com/">AWS infrastructure</a> that I could share with my entourage. I would have liked to share CyberGordon widely, but I’m constrained by the query limits that free API sources provide. Lastly, the lock down during the COVID-19 crisis gave me a lot of time, a rare resource that considerably contributed in completing CyberGordon.</p><p><strong>Well why “<em>Gordon</em>” ?</strong><br>As a Batman fan, I chose the <a href="https://en.wikipedia.org/wiki/James_Gordon_(character)">commissioner James Gordon</a>, a friend and reliable informant of the Dark Knight :-)<br>On April 2021, Gordon became CyberGordon to better reflect its function.</p><h4>Objectives</h4><p>When I built CyberGordon, I tried to follow several rules:</p><ul><li><strong>Simple: get results after pasting observable(s)</strong></li></ul><p>Neither I or my entourage would use a tool that has an extremely complex GUI or that requires sophisticated information for submission. The aim is to copy/paste one or more observables even if they are in a messy format (listed, quoted or in CSV format) submit on a unique form and get a readable summary. I’m still working on improving this last point.</p><ul><li><strong>Scalable: add easily new sources</strong></li></ul><p>Scalability often referred to the ability to manage automatically the capacity depending on the user’s demand. My intention was humble: I wanted an evolving system where I can add, or update, easily a source (called <em>engine</em>) without impacting the existing ones and without adding delay during processing of the user’s observable submission.</p><ul><li><strong>Almost free: use adapted and cost-effective services</strong></li></ul><p>For my first tool on AWS and as a non-profit service, the cost was of course the most important criteria. All major cloud service providers offer free tiers use for few of their main services for a duration of one year (sometimes less) or for life. I spent some time looking for simple and almost free AWS services before building a draft.</p><ul><li><strong>Serverless: minimal maintenance</strong></li></ul><p>It started as a challenge: being a relatively simple tool, I tried to avoid managing a Linux server, even though if I loved managing Debian servers previously… I wanted to test <em>functions</em> (containers of code), where you only manage the code, while the underlying layers (runtime, OS, hardware) are managed by AWS.<br>Of course, code maintenance has to be done at least for each runtime update (Python 3.8 to Python 3.9 for example).</p><ul><li><strong>Secure: apply best practices</strong></li></ul><p>Last but not least, even tough the manipulated data is not confidential, I have applied some principles: all data — in motion and at rest — is encrypted with AWS managed key (free), permission’s resources are restricted to the minimal needs (least privileges), public exposure is limited and management actions (API) and users’ HTTP request logs are stored for a duration of 6 months.</p><h4>Attempt with Slack</h4><p>Before hosting CyberGordon entirely on AWS, I tried to build a front-end on Slack as a ‘bot’ using <em>Slack Commands</em> feature and processing them on AWS. It works like a charm with one engine, but with two or more it is a mess and unusable. Slack is not suitable for presenting multiple results ; it is a good chat tool for “one question, one short response” capability, but not as a reporting tool…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jc_lj8RfUEonelrEaFHPg.png" /><figcaption>Request with Slack Command</figcaption></figure><p>Slack request is sent to an HTTPS endpoint (hosted on <em>AWS API Gateway</em>) and forwarded to the back-end. Results are then returned using the <em>URL incoming webhook</em> included in the Slack request. As you can see below, results are quickly unreadable when using 2 engines…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PvMcFgsFKrWf7ztfI_Lmg.png" /><figcaption>Results with Slack’s Incoming Webhook</figcaption></figure><p>A teammate suggested I generate reports on a webpage and send links to Slack user. However, after a lot thinking, this hybrid solution didn’t suit me because it limits the user’s scope only to my Slack workspace.</p><h4>Current architecture and how it works</h4><p>To get all AWS capabilities and cheapest prices, all resources are hosted in “<em>US East (Northern Virginia)” </em><a href="https://aws.amazon.com/about-aws/global-infrastructure/regions_az/">region</a>, except for 2 resources invoked near the user location.</p><p><strong>Short summary</strong><br>On website (1) you paste an observable and submits it ; request is parsed (2), sent to a queue (3), dispatched to engines (4) that queries API sources. During this background work, you’re forwarded to the results page (5).</p><p>Components are represented on this diagram and described in detail later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9yy5kyTuDkJU_AIclTRxQ.png" /><figcaption>CyberGordon Architecture</figcaption></figure><p><strong>1/ Static website</strong></p><p>All front-web assets are stored on a single S3 bucket (object storage). To provide cache, reduced latency and encrypted traffic (HTTPS TLS 1.3), a CloudFront distribution (CDN) is used ; the S3 Bucket policy only allows traffic from CloudFront.</p><p>The domain cybergordon.com points to a CloudFront distribution and the DNS zone “cybergordon.com” is entirely managed by AWS Route 53 (DNS service).</p><p><strong>2/ Request pipeline</strong></p><p>By clicking on “<em>Analyze!”</em>, an HTTP POST request with observable(s), passes through the <strong><em>Gordon-Request</em></strong> Lambda@Edge function: a Python code deployed on multiple geographical points to be executed closer to the user.</p><p>The <em>Gordon-Request</em> function generates a request ID (UUID version 4) and parses the observable(s) into 7 predefined types list: IPv4, FQDN, URL, MD5, SHA-1, SHA-256 and Email address. Basically, the function compares the request body with 7 flexible regex that accept new line (\n) or space between each observable.</p><p>Then the user is forwarded (HTTP 302 Found) to the results page that is described below.</p><p><strong>3/ Queue pipeline</strong></p><p>Small but powerful part to dispatch observables to engines depending of the types they can check against sources. The <strong><em>Gordon-Queue</em></strong> SNS topic receives message and send immediately a copy to each subscriber that accepts submitted observables type(s).</p><p><strong>4/ Engine pipeline</strong></p><p>Each <strong><em>Gordon-Engines</em></strong> Lambda functions receives simultaneously the observable(s) list. The engine controls the integrity of the request (using the SHA-1 function), then gets, if applicable, the API token of the remote source in encrypted variables and queries it then in HTTPS. Finally results are stored in a DynamoDB Table (no-SQL database). Results from all engines are stored in a unique database record. In previous implementation, individual results were stored on S3 objects, with a fourfold increase in lead times to retrieve them!</p><p>All engines query remote sources to get live and fresh information, except for the <em>Offline Feeds engine</em> (E23): an hourly CloudWatch Event Rule (scheduled task) invokes a Lambda function (Python code) that downloads, transforms in a JSON format and overwrites the existing feed content stored in the main S3 bucket.</p><p><strong>5/ Result pipeline</strong></p><p>Returning to the Request stage explained earlier (2/ Request pipeline), the user is forwarded to the result page. When loaded, a JavaScript gets the request ID in URL Query Parameter (see example below) and then makes a call to the result endpoint (HTTP GET /get-result).<br>This HTTP call is caught by the <strong><em>Gordon-Results</em></strong> Lambda@Edge function (like the Request function). This function reads the database record that contains all results and return it as a JSON Document.<br>This JavaScript script is “<a href="https://datatables.net/"><em>Datatables</em></a><em>”</em>, a great free JQuery plugin that generates super-easy HTML table from a JSON input. <em>Datatables</em> provides exporting capabilities: all results are exportable in Excel, CSV, PDF files or in your clipboard for further analysis or archiving purposes if needed.</p><blockquote><strong>Result URL example : </strong><a href="https://cybergordon.com/?utm_campaign=medium_post_1&amp;utm_source=medium&amp;utm_medium=textlink">https://cybergordon.com/result.html?id=0d9f8bf8-ae79-45b3-a759-19f0cec7caaa</a></blockquote><p><strong>Improvements (to do)</strong></p><p>The current architecture is far from being perfect and suffers from several issues that are more or less obvious:</p><ul><li>Slowness when getting and merging results from each object result. I could merge engines to one function that could generates only one result object ; in this case the Gordon-Result function can be spiked.</li><li>Re-enforce the security (input control)</li><li>The quality of the Python code, long way…</li><li>Provide a front-end API and so User Account system</li></ul><p>Since 2020 I did some improvements which will be the subject of a future article:</p><ul><li>Backup config and code on S3.</li><li>Industrialize deployment with CI/CD pipeline and Infrastructure as Code with a framework (SAM, Serverless, …).</li></ul><p>I’m open to any remarks that will help improve <a href="https://cybergordon.com/?utm_campaign=medium_post_1&amp;utm_source=medium&amp;utm_medium=textlink">CyberGordon</a> !</p><p><em>Thanks to </em><a href="https://medium.com/u/6dc2d22a926"><em>Carole Boijaud</em></a><em>, </em><a href="https://medium.com/u/9771ba1347b9"><em>Youssef Sayegh</em></a><em> and my darling for their careful proofreading.</em></p><p><em>Update April 2021: name, web domain, waiting page and result storage.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=350bad2d1f2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>