<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Posts on Edbro.net - A Cybersecurity Blog</title>
    <link>https://edbro.net/posts/</link>
    <description>Recent content in Posts on Edbro.net - A Cybersecurity Blog</description>
    <image>
      <title>Edbro.net - A Cybersecurity Blog</title>
      <url>https://edbro.net/images/edbro</url>
      <link>https://edbro.net/images/edbro</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 28 May 2026 11:23:05 +0200</lastBuildDate>
    <atom:link href="https://edbro.net/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Thoughts on Hacker&#39;s Manifesto</title>
      <link>https://edbro.net/posts/thoughts-on-hackers-manifesto/</link>
      <pubDate>Thu, 28 May 2026 11:23:05 +0200</pubDate>
      <guid>https://edbro.net/posts/thoughts-on-hackers-manifesto/</guid>
      <description>&lt;p&gt;Quite a while after it was released I finally took the time to look over the latest issue of &lt;a href=&#34;https://phrack.org&#34;&gt;Phrack&lt;/a&gt;, and there was an article that caught my attention.
Namely &lt;a href=&#34;https://phrack.org/issues/72/19#article&#34;&gt;The Hacker&amp;rsquo;s Renaissance: A Manifesto Reborn&lt;/a&gt;. For quite some time I&amp;rsquo;ve been thinking about the meaning of words like hacker and hacking.
Is a hacker inherently a bad guy? If so, what does that say about an ethical  hacker?
How have this identity shifted over time?&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Quite a while after it was released I finally took the time to look over the latest issue of <a href="https://phrack.org">Phrack</a>, and there was an article that caught my attention.
Namely <a href="https://phrack.org/issues/72/19#article">The Hacker&rsquo;s Renaissance: A Manifesto Reborn</a>. For quite some time I&rsquo;ve been thinking about the meaning of words like hacker and hacking.
Is a hacker inherently a bad guy? If so, what does that say about an ethical  hacker?
How have this identity shifted over time?</p>
<p>From my point of view the meaning has become loaded after the rise of malicious actors using hacking for their own gain.
But that is not where hacking or hackers started. Long before I became interested in computers (even before I was born) others laid the foundations of Cybersecurity.
In 1986 the <a href="https://phrack.org/issues/7/3#article">Hacker&rsquo;s Manifesto</a> was published, outlining what it meant to be a hacker. Sure there are already at that time some morally ambiguous wording, but there are also some very forward thinking about equality.
Lets take a look at the following excerpt:</p>
<blockquote>
<p>This is our world now&hellip; the world of the electron and the switch, the
beauty of the baud.  We make use of a service already existing without paying
for what could be dirt-cheap if it wasn&rsquo;t run by profiteering gluttons, and
you call us criminals.  We explore&hellip; and you call us criminals.  We seek
after knowledge&hellip; and you call us criminals.  We exist without skin color,
without nationality, without religious bias&hellip; and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us
and try to make us believe it&rsquo;s for our own good, yet we&rsquo;re the criminals.</p>
<p>Yes, I am a criminal.  My crime is that of curiosity.  My crime is
that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me
for.</p></blockquote>
<p>When reading this text we need to acknowledge that it focuses on the thirst for knowledge of a community focused on giving access to knowledge.
If we wish to play the devils advocate we could compare several of the early arrests of hackers with how Christianity handled Galileo and his ideas about the heliocentric world.</p>
<p>Certainly we should not say that all hacking is equal, or even ethical, but this thirst for knowledge is something that I can see is missed in the world of cybersecurity today.
As described in the Manifesto reborn article we see how what we today call hackers in many ways have swayed from the hacker mentality.
There are still some out there who live for the thirst of knowledge, but cybersecurity and hacking have become a commodity, especially in a corporate environment.
Not all with the hacker mentality are what we today call hackers. They are sysadmins, makers, entrepreneurs and much more.
They might not even work with ordinary computers!
A good example is the Ukrainian community that jailbroke John Deere farm equipment to be able to repair their equipment without relying on authorized repairmen.
With computers moving into more and more equipment, the hacker mentality to understand how things work are coming along.</p>
<p>So, lets keep the positive parts of the hacker mentality going. Let&rsquo;s feed this thirst for knowledge! Let&rsquo;s learn together and share what we learn. But let&rsquo;s do it ethically through the best practices of today.
The best way to build the future is by inviting the next generation in. Sharing what we have learned, both what does work and what doesn&rsquo;t.
And for the next generation, do not get comfortable! Embrace the chaos of learning, whether that is through reading the RFC of a protocol, running your own server, or asking that burning question to whomever might answer! I know that is what I&rsquo;ll continue to do. Because, there is always something new to learn!</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to Secure your Accounts Online</title>
      <link>https://edbro.net/posts/how-to-secure-your-accounts-online/</link>
      <pubDate>Mon, 02 Feb 2026 20:43:37 +0100</pubDate>
      <guid>https://edbro.net/posts/how-to-secure-your-accounts-online/</guid>
      <description>&lt;p&gt;Lately I have sat down to talk with a couple of different groups of people working outside of tech.
As someone working with cybersecurity there was a set of statements where I had to interject.
This post is a result of these discussions, with the aim to be a reference that can be used to improve the security of everyone, no great technical skills required.
I will focus on how we secure our accounts, focusing on the login experience.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Lately I have sat down to talk with a couple of different groups of people working outside of tech.
As someone working with cybersecurity there was a set of statements where I had to interject.
This post is a result of these discussions, with the aim to be a reference that can be used to improve the security of everyone, no great technical skills required.
I will focus on how we secure our accounts, focusing on the login experience.</p>
<h2 id="the-problem">The Problem</h2>
<p>The problem with passwords is that they are guessable.
We in the industry have long tried to make it harder for attackers to steal the passwords of users, much to the detriment of the users.
By increasing the requirements the user is forced to use tricks to have a chance to remember their passwords.
This could be password reuse, writing the password down on the desk, or using some (guessable) personal information.
All these are detrimental to the security of the account.</p>
<p>So what can we do. Lets break down some recommendation and risks:</p>
<h3 id="password-length-and-complexity">Password Length and Complexity</h3>
<p>Every time you create a new account online, you are asked to create a new password.
Usually there are a password length requirements, as well as requirements to use at least three of upper case, lower case, numbers and special characters.
But how much does this affect the security of the password?</p>
<p><a href="https://xkcd.com/936/">XKCD</a> has a nice comic about this, highlighting that a random string do not add as much security as it gives headache to the user.
A better approach would be to use four random words as a password, or even a passphrase.
This would increase the security, while minimizing the difficulty to remember the password.</p>
<h3 id="password-rotations">Password Rotations</h3>
<p>For a while it was recommended to force password rotations to ensure that even if the password was stolen, it had a limited lifespan.
However, this makes it even more difficult for the users to remember their passwords, meaning that the passwords in use gets worse.</p>
<p>Of course you will need to change your password if it gets leaked or stolen, but until then it is better to have a good password and keep that.
A good long and unique password will keep your login secure, without needing frequent change.</p>
<h3 id="two-factor-authentication">Two Factor Authentication</h3>
<p>The best way to mitigate the risks with passwords is to not fully trusting them.
By requiring a second factor for authentication the security skyrockets.
My recommendation is to use a two factor authentication app (such as Google Authenticator) for all services that allows it.
This will make it a bit more tedious to sign in, but it will 100 % be worth it if it saves you from being hacked.</p>
<p>There are a couple of different ways two factor apps can be used.
The most common is that the app generates a rotating 6 digit code, that you enter as a second password.
The service can then validate that you have the same app that you used when creating the account.
Another alternative is that when you sign in you get a number, this number you enter into your app to validate that you are the one trying to sign in.</p>
<p>The main thing with two factor authentication is to only approve sign-ins that you have initiated.
Never give your two factor code to someone calling you, or enter it on an untrusted website.</p>
<h3 id="password-managers-and-login-with-other-services">Password Managers and Login with other Services</h3>
<p>Due to the sheer number of accounts we all need to use regularly makes it almost impossible to remember all passwords.
Therefore there are two alternative ways to minimise the number of passwords you need to remember.</p>
<p>First of we got password managers.
This is a software that helps you create and remember good and unique passwords.
By storing the passwords, and syncing them between devices it allows you to just remember a single password.
Sure there is a small risk with putting all information into a software, but compared to the risk of using bad passwords, it is manageable.
However, you could remember a couple of your most important passwords (i.e. your bank login) ensuring that it will not be compromised if your password manager gets compromised.</p>
<p>An alternative is to use &ldquo;Log in with XXX&rdquo;.
This feature means that instead of creating a new login, your account gets linked to another service (such as Google or Facebook) and that is used to sign in.
This also lets you not remember your password.
However, this comes with at a cost, your privacy.
Whenever you sign in with another service, that service knows that you signed in.
If that is something you are OK with, you are good to continue using the feature, otherwise, you will have to look for other ways forward.</p>
<h3 id="passwordless-authentication">Passwordless Authentication</h3>
<p>There is a new way of signing in begining to gain popularity, Passwordless sign in.
The tech behind this way of signing in is quite interesting, and might be a topic for a future blogpost.
However, there are few sites where it is implemented so I will just leave this as a tease.</p>
<h2 id="summary">Summary</h2>
<p>So there are many risks with passwords, and it is difficult to keep up whenever the best practices changes.
At the point of writing, I would give two recommendations.</p>
<ol>
<li>Everyone should use Two Factor Authentication. It is the best way to secure your accounts, and should be the bare minimum for important accounts.</li>
<li>For those who want to take an extra step, and improve their security posture, a trusted password manager is a great investment. It might take some time, but when you do not have to remember your passwords any more you will thank me. I you want to learn more about password managers I have heard good things about both <a href="https://bitwarden.com/">Bitwarden</a> and <a href="https://1password.com/">1Password</a>.</li>
</ol>
<p>Stay secure out there!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Is AI Taking the Jobs of Developers?</title>
      <link>https://edbro.net/posts/is-ai-taking-the-jobs-of-developers/</link>
      <pubDate>Wed, 25 Jun 2025 20:15:14 +0200</pubDate>
      <guid>https://edbro.net/posts/is-ai-taking-the-jobs-of-developers/</guid>
      <description>&lt;p&gt;In this world of AI, no-one can miss the discussions about &amp;ldquo;vibe coding&amp;rdquo;. What that means is a the use of AI to write code to develop a product quickly, and the author doesn&amp;rsquo;t even need to know how to write code.
This opens up so many possibilities, as long as the code has a high quality.&lt;/p&gt;
&lt;p&gt;I won&amp;rsquo;t dig deeply into the quality of the code produced by AI today, but for now I wouldn&amp;rsquo;t trust code written by AI to be run in production without rigorous code review and testing.
However, if we assume that AI in the future would be of a quality high enough to be run, what would the impact be on Developers? I would argue that this is not a new problem, but a new version of an old problem.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In this world of AI, no-one can miss the discussions about &ldquo;vibe coding&rdquo;. What that means is a the use of AI to write code to develop a product quickly, and the author doesn&rsquo;t even need to know how to write code.
This opens up so many possibilities, as long as the code has a high quality.</p>
<p>I won&rsquo;t dig deeply into the quality of the code produced by AI today, but for now I wouldn&rsquo;t trust code written by AI to be run in production without rigorous code review and testing.
However, if we assume that AI in the future would be of a quality high enough to be run, what would the impact be on Developers? I would argue that this is not a new problem, but a new version of an old problem.</p>
<p>In the early days of programming, developers had to write complex assembly to tell the computer what to do. Then came the compilers and high level languages! This new tech would allow new users with less understanding of computers to develop programs! Doesn&rsquo;t that sound familiar? However, this did not limit the need for developers. It limited the need for assembly developers, but the need for modern developers skyrocketed.</p>
<p>My prediction is that the same will happen now. The need for traditional developers will fall, but instead we will need a new breed of developers. Developers that know how to prompt AI to create software according to the requirements of the business. Even though a developer will be more efficient the need for software will increase even more, meaning that there will be need for even more developers.</p>
<p>Before we get to this future we need to solve some issues at hand. Using AI for coding introduces new risks, but that we&rsquo;ll have to save for another time.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Kinds of Penetrationtesting</title>
      <link>https://edbro.net/posts/kinds-of-penetrationtesting/</link>
      <pubDate>Sat, 07 Dec 2024 07:25:55 +0100</pubDate>
      <guid>https://edbro.net/posts/kinds-of-penetrationtesting/</guid>
      <description>&lt;p&gt;As a penetration tester, you will inevitably find yourself involved in scoping engagements, navigating the challenges of aligning a client’s needs with their expectations. “Penetration testing” is a term that almost everyone believes they understand, yet it often carries vastly different interpretations. This ambiguity makes it more of an umbrella term, offering little insight into how the test will actually be executed or what it will cover. In this post, I’ll share my perspective on one approach to differentiating how penetration tests can be executed, helping both testers and clients clarify their expectations.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As a penetration tester, you will inevitably find yourself involved in scoping engagements, navigating the challenges of aligning a client’s needs with their expectations. “Penetration testing” is a term that almost everyone believes they understand, yet it often carries vastly different interpretations. This ambiguity makes it more of an umbrella term, offering little insight into how the test will actually be executed or what it will cover. In this post, I’ll share my perspective on one approach to differentiating how penetration tests can be executed, helping both testers and clients clarify their expectations.</p>
<p>When discussing penetration testing, it’s helpful to break down the ways a test can be executed into distinct approaches. This is just one of many ways to clarify expectations and align the scope of a test with the goals of both the tester and the client. In this post, I’ll focus on three key areas, each of which requires a different set of skills and expertise:</p>
<ol>
<li><strong>Compliance testing</strong> involves executing a predetermined list of test cases to ensure the system adheres to specific standards or regulatory requirements. This type of testing benefits from familiarity with the relevant compliance frameworks and the ability to systematically assess against defined criteria.</li>
<li><strong>Configuration weaknesses and known vulnerabilities</strong> focuses on identifying and exploiting known vulnerabilities and misconfigurations within the system’s components, leveraging established methods to evaluate the system’s current posture. Expertise in vulnerability databases, common misconfigurations, and practical exploitation techniques is critical here.</li>
<li>In <strong>vulnerability research</strong> the goal is to discover zero-day vulnerabilities—previously unknown flaws within the system—through deeper analysis. This requires advanced skills in reverse engineering, protocol analysis, and often a creative mindset to uncover new attack vectors.</li>
</ol>
<p>Each of these approaches offers valuable insights, but understanding their differences is essential for setting clear expectations and aligning the test to the organization’s needs.</p>
<h3 id="compliance-testing">Compliance Testing</h3>
<p>Compliance testing is valued for its repeatability. By following a predetermined set of test cases, it ensures consistency across tests, making it easier to measure improvements over time and identify recurring issues. This makes it an excellent choice for organizations with strict standards or regulatory requirements.</p>
<p>However, the structured nature of compliance testing can also be a limitation. It lacks the exploratory element that allows testers to uncover novel or unexpected vulnerabilities, as it focuses strictly on predefined test cases. Despite this, compliance testing can be particularly useful in rapidly changing environments, as it ensures consistent coverage with every iteration.</p>
<p>Frameworks like <a href="https://www.pcisecuritystandards.org/standards/pci-dss/">PCI-DSS</a>, focused on securing payment card data, and <a href="https://owasp.org/www-project-application-security-verification-standard/">OWASP ASVS</a>, which sets security standards for web applications, provide clear guidelines for compliance testing. While this approach may not catch everything, it is essential for organizations to demonstrate adherence to industry standards, build trust, and maintain accountability.</p>
<h3 id="configuration-weaknesses-and-known-vulnerabilities">Configuration Weaknesses and Known Vulnerabilities</h3>
<p>This type of testing often covers a broad scope, such as an entire organization or a data center. Unlike compliance testing, it is typically black or gray box, focusing on what can be observed or accessed from a specified starting point. The goal is to identify and exploit known vulnerabilities or misconfigurations to see how far an attacker could progress towards a predetermined objective.</p>
<p>This approach is particularly valuable for assessing the organization’s current security posture against well-documented risks. Testers rely on vulnerability databases, exploit frameworks, and knowledge of common misconfigurations to simulate realistic attack scenarios. For example, they might exploit unpatched software, default credentials, or exposed services to gain deeper access into the environment.</p>
<p>The advantage of this method is its ability to uncover weaknesses that arise from day-to-day operations or overlooked configurations. However, it is not designed to find new, undiscovered vulnerabilities, as its focus remains on existing attack vectors. Organizations benefit from this type of testing by identifying practical areas for improvement, such as patch management, network segmentation, and access controls.</p>
<h3 id="vulnerability-research">Vulnerability Research</h3>
<p>Vulnerability research is typically narrower in scope, focusing on a single system, application, or specific component. Unlike other types of testing, its primary goal is to uncover unknown vulnerabilities—commonly referred to as zero-days—that have not yet been documented or exploited. This makes it one of the most resource-intensive approaches to penetration testing.</p>
<p>The process often involves deep analysis of the target system, including reverse engineering, protocol analysis, and code review. Testers employ creative problem-solving and advanced techniques to identify weaknesses that standard testing methods might miss. For example, they might analyze how an application processes input, searching for subtle errors that could lead to memory corruption or privilege escalation.</p>
<p>This type of testing is particularly important for vendors and organizations managing critical systems. For vendors, performing even basic vulnerability research during development helps identify and address zero-day vulnerabilities before release, reducing the risk of shipping insecure software. For critical systems or those likely to face targeted attacks, discovering even a single zero-day can have significant implications, making this approach invaluable in safeguarding users and maintaining trust.</p>
<h2 id="conclusion">Conclusion</h2>
<p>Penetration testing is not a one-size-fits-all process. Each of the approaches discussed—compliance testing, configuration weaknesses and known vulnerabilities, and vulnerability research—serves a unique purpose, addressing different aspects of an organization’s security. Compliance testing ensures consistency and alignment with standards, configuration testing identifies practical vulnerabilities within a broader scope, and vulnerability research uncovers critical zero-days within specific systems.</p>
<p>Choosing the right type of penetration test depends on your goals, resources, and the systems in scope. Equally important is finding the correct expertise for the job. Each approach requires specialized skills, from regulatory knowledge for compliance testing to deep technical expertise for vulnerability research. The success of a penetration test lies not only in the methodology but also in the proficiency of the testers conducting it.</p>
<p>By understanding the differences and value of each approach, organizations can better align their testing strategies with their needs, ultimately strengthening their overall security posture.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Supply Chain Security in Light of EU Regulations: A Practical Approach</title>
      <link>https://edbro.net/posts/supply-chain-security-in-light-of-eu-regulations-a-practical-approach/</link>
      <pubDate>Mon, 30 Sep 2024 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/supply-chain-security-in-light-of-eu-regulations-a-practical-approach/</guid>
      <description>&lt;p&gt;Lately, I’ve been thinking about the complexity of securing the software supply chain. If there’s one lesson we’ve learned from incidents like the SolarWinds and Kaseya attacks, it’s that our supply chains are increasingly becoming the weakest link in our cybersecurity defenses. What makes it even more challenging is the regulatory landscape—particularly within the European Union (EU)—which is evolving to place more responsibility on organizations to secure their supply chains.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Lately, I’ve been thinking about the complexity of securing the software supply chain. If there’s one lesson we’ve learned from incidents like the SolarWinds and Kaseya attacks, it’s that our supply chains are increasingly becoming the weakest link in our cybersecurity defenses. What makes it even more challenging is the regulatory landscape—particularly within the European Union (EU)—which is evolving to place more responsibility on organizations to secure their supply chains.</p>
<p>In this post, I’ll dig into some of the key EU regulations that are directly shaping supply chain security and discuss practical steps you can take to build a more resilient supply chain. When we talk about supply chain attacks, we’re not just referring to the direct targets, but to the entire ecosystem. Attackers often exploit the weakest point in the chain—perhaps an unpatched vulnerability in a third-party component or even malicious code that has been slipped into a software update. This makes supply chain security not just an IT issue, but a critical business concern.</p>
<p>A significant risk comes from the potential for backdoors to be introduced into widely-used software libraries. One notable example is the backdoor found in XZ Utils, a compression library used in many Linux distributions. This incident revealed how even seemingly trusted and ubiquitous software components could be compromised, providing attackers with hidden access.</p>
<h2 id="eu-regulations-shaping-supply-chain-security">EU Regulations Shaping Supply Chain Security</h2>
<h3 id="nis2-directive">NIS2 Directive</h3>
<p>The NIS2 Directive is one of the key regulations directly targeting supply chain security. It places obligations on &ldquo;essential&rdquo; and &ldquo;important&rdquo; sectors to actively manage their supply chain risks as part of their overall cybersecurity strategies. This means that organizations can’t just focus on securing their own systems—they need to also assess and manage the risks associated with their suppliers and service providers. In other words, if you’re relying on third-party software, you’re responsible for its security too.</p>
<h3 id="digital-operational-resilience-act-dora">Digital Operational Resilience Act (DORA)</h3>
<p>DORA focuses on the financial sector and aims to ensure that financial institutions can withstand ICT-related disruptions, including supply chain incidents. A significant part of DORA&rsquo;s requirements revolves around third-party risk management. Financial entities are required to monitor and manage risks stemming from their ICT service providers continuously. I find this particularly interesting because it reflects how the financial sector is being pushed to develop more rigorous and transparent supply chain security practices.</p>
<h3 id="cyber-resilience-act-proposed">Cyber Resilience Act (Proposed)</h3>
<p>The Cyber Resilience Act is an upcoming regulation that explicitly addresses software supply chain risks. It aims to impose mandatory cybersecurity requirements for software products, including the need to manage vulnerabilities throughout the software lifecycle. Although it’s still in the proposal stage, this act signals the EU&rsquo;s intention to address software security from the development phase through to deployment, emphasizing that security isn’t just a one-time effort but a continuous responsibility.</p>
<h2 id="practical-steps-for-building-a-secure-supply-chain">Practical Steps for Building a Secure Supply Chain</h2>
<p>With this evolving regulatory landscape in mind, how can businesses actually address these supply chain security concerns? Here are some practical steps:</p>
<h3 id="1-create-and-use-an-sbom-software-bill-of-materials-for-supply-chain-visibility">1. <strong>Create and Use an SBOM (Software Bill of Materials) for Supply Chain Visibility</strong></h3>
<p>Building an SBOM (e.g., in formats like CycloneDX or SPDX) is one of the most effective ways to gain visibility into your software&rsquo;s supply chain. Think of an SBOM as an ingredient list that provides detailed information about every component and dependency, including their versions and origins. By maintaining an SBOM and mapping your entire supply chain, you make it easier to identify affected components quickly when new vulnerabilities, like Log4Shell, are disclosed. It also enables you to scrutinize any changes or new additions that might introduce new risks, such as a backdoor in a dependency. Having this level of insight is crucial for addressing both security threats and regulatory requirements around supply chain transparency.</p>
<h3 id="2-regularly-assess-your-suppliers">2. <strong>Regularly Assess Your Suppliers</strong></h3>
<p>Relying solely on certifications isn&rsquo;t enough. Regular assessments of your suppliers are vital in maintaining a secure supply chain. This might involve reviewing their security practices, examining their own use of SBOMs, and conducting periodic audits. Keep an eye out for signs of compromise, such as unusual changes in the software packages they provide. By continuously evaluating your suppliers’ security measures, you reduce the risk of supply chain attacks and ensure that your suppliers are maintaining a security posture that aligns with your standards.</p>
<h3 id="3-adopt-a-zero-trust-approach">3. <strong>Adopt a Zero-Trust Approach</strong></h3>
<p>Implementing a zero-trust model in your supply chain management is an effective way to minimize the potential impact of a supplier breach. This approach assumes that no supplier is fully secure and therefore segments access to your network. By limiting the access that suppliers and third-party components have, you can contain the potential damage if one of them is compromised. This mindset not only mitigates risks but also supports a more robust, layered defense strategy that aligns well with the evolving landscape of supply chain security.</p>
<h2 id="conclusion">Conclusion</h2>
<p>Supply chain security is no longer just an optional extra—it’s an essential part of any robust cybersecurity strategy, especially as the EU continues to tighten its regulatory requirements. Regulations like the NIS2 Directive and DORA directly call for organizations to address supply chain risks actively. Meanwhile, the proposed Cyber Resilience Act signals the EU&rsquo;s growing focus on software security throughout its lifecycle.</p>
<p>While compliance is important, practical measures like using an SBOM and adopting a zero-trust mindset will go a long way in building a more resilient supply chain. Don’t overlook the risk of backdoors and malicious code in your dependencies. Supply chain security isn’t just about patching vulnerabilities; it’s about ensuring the integrity of every component in your software.</p>
<h2 id="references">References</h2>
<ol>
<li><a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=COM%3A2020%3A823%3AFIN">NIS2 Directive</a></li>
<li><a href="https://www.eiopa.europa.eu/digital-operational-resilience-act-dora_en">Digital Operational Resilience Act (DORA)</a></li>
<li><a href="https://digital-strategy.ec.europa.eu/en/library/cyber-resilience-act">Cyber Resilience Act (Proposal)</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Change Management in Development and Operations</title>
      <link>https://edbro.net/posts/change-management-in-development-and-operations/</link>
      <pubDate>Sat, 11 May 2024 11:36:40 +0100</pubDate>
      <guid>https://edbro.net/posts/change-management-in-development-and-operations/</guid>
      <description>&lt;p&gt;While looking into IT Service Change Management, and primarily in accordance with &lt;a href=&#34;https://en.wikipedia.org/wiki/ITIL&#34;&gt;ITIL&lt;/a&gt;, there was one thing that stood out.
There seems to be a disconnect between the the development point of view and how change management is implemented by operations.
With that I mean that the implementations I have seems to be more applicable for finished product than with software developed in house.
The change management processes works when a change is either adding a new product or installing a new version.
When it comes to full software development, the change management process gets fuzzy and drawn out.
This gets even more distinct when looking at the more agile or DevOps ways of working of development.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>While looking into IT Service Change Management, and primarily in accordance with <a href="https://en.wikipedia.org/wiki/ITIL">ITIL</a>, there was one thing that stood out.
There seems to be a disconnect between the the development point of view and how change management is implemented by operations.
With that I mean that the implementations I have seems to be more applicable for finished product than with software developed in house.
The change management processes works when a change is either adding a new product or installing a new version.
When it comes to full software development, the change management process gets fuzzy and drawn out.
This gets even more distinct when looking at the more agile or DevOps ways of working of development.</p>
<p>That said, while reading up on ITIL I see no reason  why that should be the case.
There does not seem to be any innate reasons why the change management process should hinder the agile or DevOps development processes.
Both have a focus on ensuring the best way of working by focusing on the outcome and improving it through reviews or retrospectives.</p>
<p>My take is that both methods have an inherent focus on minimizing the risk in system development. The approaches are however different.
To show this we first have to look at the definition of risk.
Most literature define risk as the product of <em>likelihood</em> and <em>impact</em>.
Traditional change management have a focus on the likelihood part of risk.
Through testing and analysis the likelihood of a change impacting the production environment is reduced.</p>
<p>DevOps on the other hand focuses on minimising the impact by making small, revertible changes.
When something goes wrong the main goal is to use the swiftness of the dev team to revert or fix the issue as quick as possible.</p>
<p>This miss-match is likely one of the reasons conflict often arise between development organisations and operations.
This observation might not be a quick fix, but I think that if we observe the expectations of our counterpart we can get a better understanding helping us to create a way of working that fits our organization.
When we see that we have the same goal (reducing risk) but different approaches we also get a common language to reach that common goal.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Different Kinds of Cybersecurity</title>
      <link>https://edbro.net/posts/different-kinds-of-cybersecurity/</link>
      <pubDate>Sun, 27 Aug 2023 10:42:16 +0200</pubDate>
      <guid>https://edbro.net/posts/different-kinds-of-cybersecurity/</guid>
      <description>&lt;p&gt;In the world of cybersecurity there is a lot of specific definitions, a type of insider lingo that we assume that everyone agrees on the definition of. However, herein lies the problem. We assume, without discussing. I have ended up in multiple discussions that occurs due to different interpretations of a definition. In this post I&amp;rsquo;ll give my view of one of the biggest differences of definition that I have seen, namely what we include in the term cybersecurity.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In the world of cybersecurity there is a lot of specific definitions, a type of insider lingo that we assume that everyone agrees on the definition of. However, herein lies the problem. We assume, without discussing. I have ended up in multiple discussions that occurs due to different interpretations of a definition. In this post I&rsquo;ll give my view of one of the biggest differences of definition that I have seen, namely what we include in the term cybersecurity.</p>
<p>The first and easiest viewpoint is that of a business that isn&rsquo;t producing a digital product, neither for yourself nor for your customers. Noteworthy here is that any website is acquired as a product from a third party. This means that no product development is performed in house. In this case the full extent of cybersecurity is to ensure that the IT-environment does not get breached. This means a focus on raising security through configurations and products as well as ensuring that you trust the products provided by your suppliers.</p>
<p>Next up we take the viewpoint of a Something as a Service (XaaS) provider. In this case you develop a digital solution and manage the data of your clients in your IT-environment. This includes both traditional software companies (such as <a href="https://google.com">Google</a>) and organisations that build software to better serve there clients, e.g. the local sports team building an e-shop to sell tickets online.
Now there is an extra focus on ensuring that the in-house software does not contain neither vulnerabilities nor malware. Since both these cases can have an impact on both the company themselves and the customers.</p>
<p>For a company that provides software that is run purely in the environment of their customer the focus might be more focused on providing software without malware. Since the impact of a vulnerability in the product is lower for them, while being part of a supplychain attack will be devastating.</p>
<p>With these viewpoints we note that your needs might vary, and once again we see the risk of confusion due to reading different things into the word cybersecurity. I&rsquo;ve been guilty of this myself, as someone whom have worked close to vulnerabilities throughout my career I&rsquo;ve had a focus on application security and delivering software without vulnerabilities. But that is just a small part of the field of cybersecurity.</p>
<p>But what part of this is most important? That is up to each organisation to decide. However, for a general answer we can look to the statistics. IBM has provided a report on the <a href="https://www.ibm.com/reports/data-breach">Cost of a Data Breach</a> that can be used to gain some insights. In this report we see that the most common initial access vectors (entry point for bad actors) are still human related. The two most common attacks are phishing and stolen or compromised credentials. If we combine known vulnerabilities and zero days (not yet reported vulnerabilities) we end up in the same range. My conclusion is that the focus we have on vulnerabilities in the cybersecurity industry has paid of, and it is now easier to exploit the humans where the technical protections have not kept up.</p>
<h2 id="summary">Summary</h2>
<p>Cybersecurity can be difficult due to the different meanings. One way to brake it down is into the following three focus areas:</p>
<ol>
<li>Ensuring that the own internal IT-environment doesn&rsquo;t get breached</li>
<li>Ensuring that delivered products are without vulnerabilities</li>
<li>Ensuring that delivered products are without malware</li>
</ol>
<p>Depending on your organisation the priority of these might change, and one might affect another. Regardless, you need to understand what part or parts of cybersecurity is relevant to you and your customers. If not, you might be spending your money without protecting what&rsquo;s important.</p>
<p>Lastly we have to normalize discussing the definitions of what we are talking about. Sometimes it&rsquo;s not enough to ask if you know, we also need to clarify that we agree on the meaning.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Threat Modelling and Threat Actors</title>
      <link>https://edbro.net/posts/threat-modelling-and-threat-actors/</link>
      <pubDate>Sun, 02 Jul 2023 07:35:48 +0200</pubDate>
      <guid>https://edbro.net/posts/threat-modelling-and-threat-actors/</guid>
      <description>&lt;p&gt;As security professionals working with software components it is not always easy to prioritise what security raising actions should be prioritised.
According to most security standards (such as ISO27000) require a risk based security approach.
Regardless if we are building our own applications, or we are installing third party software in our network we need to understand what threats there are to our environment.
After understanding what threats there are, we prioritise them and thereby also prioritise what actions we should take to minimise the risk.
Many organisations use threat modelling to understand what threats they have in their environment.
However, I have lately come to understand that the definition of threat modelling varies widely between organisations.
There are two main variants:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As security professionals working with software components it is not always easy to prioritise what security raising actions should be prioritised.
According to most security standards (such as ISO27000) require a risk based security approach.
Regardless if we are building our own applications, or we are installing third party software in our network we need to understand what threats there are to our environment.
After understanding what threats there are, we prioritise them and thereby also prioritise what actions we should take to minimise the risk.
Many organisations use threat modelling to understand what threats they have in their environment.
However, I have lately come to understand that the definition of threat modelling varies widely between organisations.
There are two main variants:</p>
<ol>
<li><strong>The Pentest definition</strong>: According to the <a href="http://www.pentest-standard.org/index.php/Threat_Modeling">Penetration Testing Execution Standard (PTES)</a> the goal of a threat modelling exercise is to understand what potential targets an attacker has on the network, and how an attacker might reach them. The process is a part of the testing phase to prioritise test cases and help assess the severity of findings.</li>
<li><strong>The Appsec definition</strong>: <a href="https://owasp.org/www-community/Threat_Modeling">Open Worldwide Application Security Project (OWASP)</a> on the other hand focuses on finding security hotspots as early on in the development phase as possible, preferably as early as the design phase. There are multiple structured ways of getting there, one of the most common is STRIDE.</li>
</ol>
<p>Both of these have their value. The main point is to ensure that everyone is aware of what version of threat modelling that is discussed or performed.
Regardless of model, it is helpful to not only think about the potential threats, but also what threat actors are relevant.</p>
<p>When I have read about identifying threat actors previously, I&rsquo;ve dismissed it as overcomplicating.
That might be true if you are looking at the differences between ransomware gangs, but just grouping the threat actors into categories.
For example, noting that we trust our users in the air-gapped system to not be malicious and instead focussing on not getting malware installed through third parties as a way of performing industrial espionage.
This is a quite extreme example, but it shows a valid point. By noting industrial espionage as a threat actor we need to discuss the security in another way than if we are looking at disgruntled employees.</p>
<p>By being aware of the threat actors against our organisation or application we can focus on the correct threats in the threat modelling sessions.
This will certainly improve the accuracy of the identified threats, and the risk towards them.
Furthermore, this will allow us to focus our efforts on the most important actions to improve the security posture.</p>
<p>In summary, as a part of our security practices we should identify both threat actors and potential threats.
This is just as valid if it is software developed inhouse or if it is third party software.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Privacy in the European Union and the World</title>
      <link>https://edbro.net/posts/privacy-in-the-european-union-and-the-world/</link>
      <pubDate>Mon, 27 Mar 2023 19:32:43 +0100</pubDate>
      <guid>https://edbro.net/posts/privacy-in-the-european-union-and-the-world/</guid>
      <description>&lt;p&gt;Lately there has been an increase in discussions about the use of end-to-end encryption for consumers. The most blatant attack on privacy I have read about is the so-called EU Chat Control. But there are other regulations as well, such as the UK Online Safety Bill.&lt;/p&gt;
&lt;h2 id=&#34;chat-control-eu&#34;&gt;Chat Control (EU)&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s begin with the European Union, and what is usually called &lt;a href=&#34;https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=COM%3A2022%3A209%3AFIN&#34;&gt;Chat Control&lt;/a&gt;. This regulation aims to protect children from abuse by forcing both hosting and communications services to reduce the risk of the service being used for Child Sexual Abuse Material (CSAM) by&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Lately there has been an increase in discussions about the use of end-to-end encryption for consumers. The most blatant attack on privacy I have read about is the so-called EU Chat Control. But there are other regulations as well, such as the UK Online Safety Bill.</p>
<h2 id="chat-control-eu">Chat Control (EU)</h2>
<p>Let&rsquo;s begin with the European Union, and what is usually called <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=COM%3A2022%3A209%3AFIN">Chat Control</a>. This regulation aims to protect children from abuse by forcing both hosting and communications services to reduce the risk of the service being used for Child Sexual Abuse Material (CSAM) by</p>
<blockquote>
<p>adapting, through appropriate technical and operational measures and staffing, the provider’s content moderation or recommender systems, its decision-making processes, the operation or functionalities of the service, or the content or enforcement of its terms and conditions;</p></blockquote>
<p>As with so many of regulations like this, the intent is to do good. However noble the intent, legislating against strong end-to-end encryption is not the way, and many of my criticisms in <a href="https://edbro.net/posts/apple-surveillance-and-csam/">Apple, Surveillance and CSAM</a> are still valid.</p>
<p>To better understand the problems with this act, and other acts like it lets try to convert what the bill wishes to do to the physical world. The enforcement of content moderation is in practice a form of surveillance. As every communication platform should monitor messages or calls for CSAM (Child Sexual Abuse Material). This would be equivalent to forcing all landlords to have a camera in every room to ensure that there are no child abuse in their property.</p>
<p>This intrusion into the physical life seems to clearly (I am not a lawyer, but seems cut and dry to me) violate <a href="https://en.wikipedia.org/wiki/Article_8_of_the_European_Convention_on_Human_Rights">Article 8 of the European Convention on Human Rights</a>, as it protects the right to privacy for both his home and correspondence.</p>
<blockquote>
<p>Article 8 – Right to respect for private and family life</p>
<ol>
<li>
<p>Everyone has the right to respect for his private and family life, his home and his correspondence.</p>
</li>
<li>
<p>There shall be no interference by a public authority with the exercise of this right except such as is in accordance with the law and is necessary in a democratic society in the interests of national security, public safety or the economic well-being of the country, for the prevention of disorder or crime, for the protection of health or morals, or for the protection of the rights and freedoms of others.</p>
</li>
</ol></blockquote>
<p>It is not okay to legislate away the privacy of individuals in the physical world, so why should it be okay online?</p>
<h2 id="online-safety-bill-uk">Online Safety Bill (UK)</h2>
<p>Another attempt, though not as intrusive as the Chat Control, is the United Kingdom <a href="https://en.wikipedia.org/wiki/Online_Safety_Bill">Online Safety Bill</a>, which is under heavy scrutiny. From its publication the bill has been heavily criticised, as it can be used to introduce a modern form of censorship, under the control of the Secretary of State. In practice the proposed duties of any user-to-user service (according to <a href="https://en.wikipedia.org/wiki/Online_Safety_Bill">Wikipedia</a>) are:</p>
<blockquote>
<p><strong>Duties</strong></p>
<p>The Duty of Care refers to a number of specific duties to all services within scope:[1]</p>
<ul>
<li>The illegal content risk assessment duty</li>
<li>The illegal content duties</li>
<li>The duty about rights to freedom of expression and privacy</li>
<li>The duties about reporting and redress</li>
<li>The record-keeping and review duties</li>
</ul></blockquote>
<p>The main focus of this bill is to enforce the &ldquo;appropriate&rdquo; response to illegal activities on online platforms. But whom decide what is illegal?</p>
<h2 id="summary">Summary</h2>
<p>In these cases it is democracies legislating. However, if a democracy can legislate away the privacy of its citizens, what will stop an authoritarian regime from doing so as well? As with the human rights written and accepted globally, we need to accept that there are rights that are applicable online as well! In addition, we in the free (democratic) world need to safeguard these rights for those more unfortunate than us. We cannot apply mass surveillance where it suits the government, and then condemn regimes for using it for their needs.</p>
<h2 id="references">References</h2>
<ol>
<li><a href="https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/985033/Draft_Online_Safety_Bill_Bookmarked.pdf">The Online Safety Bill</a></li>
<li><a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=COM%3A2022%3A209%3AFIN">Chat Control</a></li>
</ol>
<h3 id="further-reading">Further Reading</h3>
<ul>
<li><a href="https://mullvad.net/en/chatcontrol/stop-chatcontrol">https://mullvad.net/en/chatcontrol/stop-chatcontrol</a></li>
<li><a href="https://signal.org/blog/uk-online-safety-bill/">https://signal.org/blog/uk-online-safety-bill/</a></li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>Governments Influencing Wikipedia?</title>
      <link>https://edbro.net/posts/governments-influencing-wikipedia/</link>
      <pubDate>Fri, 06 Jan 2023 13:39:11 +0100</pubDate>
      <guid>https://edbro.net/posts/governments-influencing-wikipedia/</guid>
      <description>&lt;p&gt;It has recently been &lt;a href=&#34;https://www.theguardian.com/technology/2023/jan/05/saudi-arabia-jails-two-wikipedia-staff-in-bid-to-control-content&#34;&gt;reported&lt;/a&gt; by &lt;em&gt;The Guardian&lt;/em&gt; that Saudi Arabia has taken serious steps to influence the information available at Wikipedia. The investigations began after two volunteers at Wikipedia were put in jail for &amp;ldquo;swaying public opinion&amp;rdquo; and &amp;ldquo;violating public morals.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Since then Saudi Arabia seems to have stepped up their efforts to influence the public view. An &lt;a href=&#34;https://dawnmena.org/saudi-arabia-government-agents-infiltrate-wikipedia-sentence-independent-wikipedia-administrators-to-prison/&#34;&gt;internal investigation&lt;/a&gt; at Wikimedia showed that all of their administrators in the country were government agents.
Since Wikipedia relies on their volunteers to maintain the information on the site, they have had to create a structure of trust to ensure the quality of the information. The Saudi Arabian agents had managed to raise to the level of administrators, whom are authorized to edit or delete contents, as well as blocking lower level users edits from being published.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>It has recently been <a href="https://www.theguardian.com/technology/2023/jan/05/saudi-arabia-jails-two-wikipedia-staff-in-bid-to-control-content">reported</a> by <em>The Guardian</em> that Saudi Arabia has taken serious steps to influence the information available at Wikipedia. The investigations began after two volunteers at Wikipedia were put in jail for &ldquo;swaying public opinion&rdquo; and &ldquo;violating public morals.&rdquo;</p>
<p>Since then Saudi Arabia seems to have stepped up their efforts to influence the public view. An <a href="https://dawnmena.org/saudi-arabia-government-agents-infiltrate-wikipedia-sentence-independent-wikipedia-administrators-to-prison/">internal investigation</a> at Wikimedia showed that all of their administrators in the country were government agents.
Since Wikipedia relies on their volunteers to maintain the information on the site, they have had to create a structure of trust to ensure the quality of the information. The Saudi Arabian agents had managed to raise to the level of administrators, whom are authorized to edit or delete contents, as well as blocking lower level users edits from being published.</p>
<p>This got me thinking, if one regime has infiltrated Wikipedia, are they the only one? Most likely not. And if countries are doing it on a wide scale, is it possible that other organisations are doing the same with a more limited scope.</p>
<p>This might be an interesting area for further research by someone more qualified than a cybersecurity engineer. However, as a layman I would think that this is quite common. When we have an open set of knowledge people in power will try to control it.
So the next question becomes how successful are they? For now we have to keep in mind that we should be critical of all sources, and try to use several of them to validate. Do they all agree? Whom is behind the information?</p>
<p>There is still a place for Wikipedia, and due to the many eyes that continuously review the data I will keep it as one of my go to sources. I believe that the many will keep the information true, and that this incident has opened the eyes of both Wikimedia and the free press to in the future hold leaders accountable for dirty influences.</p>
<p>In the end, I hope that we can continue to protect the individuals that share their knowledge on the web, regardless if they are journalists, volunteers or something else. We should continue to aspire to share knowledge and insights to further the discussions and make the world a better place.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Thoughts on Mastodon</title>
      <link>https://edbro.net/posts/thoughts-on-mastodon/</link>
      <pubDate>Tue, 03 Jan 2023 14:32:37 +0100</pubDate>
      <guid>https://edbro.net/posts/thoughts-on-mastodon/</guid>
      <description>&lt;p&gt;Over the holidays I finally took my time to dig into &lt;a href=&#34;https://joinmastodon.org/sv&#34;&gt;Masodon&lt;/a&gt;. It has been a bit of a journey, both to understand how it works, and how to use it. From the start it feels like twitter, but as you use it you see the differences and realise how different they are. Regardless I do now feel at home on Mastodon, and the lack of an algorithm feeding posts it thinks I will like is most refreshing.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Over the holidays I finally took my time to dig into <a href="https://joinmastodon.org/sv">Masodon</a>. It has been a bit of a journey, both to understand how it works, and how to use it. From the start it feels like twitter, but as you use it you see the differences and realise how different they are. Regardless I do now feel at home on Mastodon, and the lack of an algorithm feeding posts it thinks I will like is most refreshing.</p>
<h2 id="what-is-mastodon">What is Mastodon?</h2>
<p>The main selling point of Mastodon is that it is a decentralised social network. Think of it as combination of Twitter and Email. Just as Twitter, Mastodon gives you a timeline of posts by people you follow. However, it is not a centralised system, instead you chose your Mastodon instance. That way your username looks as an email address. Mine for example is <a href="https://swecyb.com/@edbro">@edbro@swecyber.com</a>, and my posts can be seen by any other instance.</p>
<p>This is called a federated solution. You work towards your instance, that shares its data with other instances. In practice this minimises the dependency on a single centralised entity. If you wish to change instance due to a lack of trust, it not being maintained or closed down you can just export your data and import it on a new instance. That could be on a personal instance or one of the larger ones that is already existing.</p>
<p>For now it seems to be mostly tech people whom have migrated from Twitter, but there are others as well. However, since each instance usually have a focus, this might be somewhat due to the my choice of instance to join, and the people I follow.</p>
<p>This design of Mastodon puts a big responsibility on its users to follow accounts with diverse opinions to not end up in a bubble. There is a risk that if you only follow people with opinions like your own, they will be further deepened, regardless if they are right or wrong. It is up to the user to ensure that views are challenged in a good way and that everyone uses their critical thinking to not be fooled by malicious actors.</p>
<h2 id="main-differences-from-twitter">Main Differences from Twitter</h2>
<p>The main things that confused me was the likeness of twitter, while Mastodon is different. Some things that seem similar works quite different.</p>
<ul>
<li>There is no algorithm. You see the posts authored (or boosted) by the pepole you follow. If you want to find new people to follow you can also see the timeline of your instance and instances configured by its admin. However this timeline is sorted chronologically, and all posts of those instances are shown.</li>
<li>The difference between <em>Boosts</em>, <em>Favourites</em>, and <em>Bookmarks</em>.
<ul>
<li><em>Boosts</em> are retweets. On Mastodon they are used to further spread a post. This allows your followers (regardless of instance) to see the original post. Note also that it is not possible to quote boost. If you want to add something to the discussion, you need to do so as a reply.</li>
<li><em>Favourites</em> shares some features with likes. They can be seen on an original post, but does not push the post to your followers. Also note that there are no algorithm pushing posts with many likes. Therefore the effect of favouriteing is limited.</li>
<li><em>Bookmarks</em> are a way to save a post so that you can find it again later. These are seen by neither the author of the post nor your followers.</li>
</ul>
</li>
<li>The search does not search the full text. Instead only displaynames, tags, and usernames are searched. In addition, searches can only find things the instance is aware of. For example that could be posts that are federated to the users of the instance or the authors of those posts. To find a user of another instance you need their full username, including the address to the instance.</li>
<li>Each post is tagged with a language. This makes it possible to use 1 account to communicate in different languages. Your followers can easily filter your posts to the languages they speak, and does not see the posts in other languages.</li>
</ul>
<h2 id="thoughts-on-mastodon">Thoughts on Mastodon</h2>
<p>After getting used to the behaviour of Mastodon I really like what it does. It is a nice social network, and allows for discussions and networking in a way that twitter today doesn&rsquo;t. It is easier to perform personal moderation of what I wish to see.</p>
<p>I have found a small instance with individuals interested in cybersecurity. This however does not limit me, I still partake in the broader community, replying to posts or sharing my thoughts from the beginning.</p>
<p>Hope to see you on Mastodon!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Connecting a MikroTik AccessPoint to RouterOS via CapsMAN</title>
      <link>https://edbro.net/posts/connecting-a-mikrotik-accesspoint-to-routeros-via-capsman/</link>
      <pubDate>Sun, 13 Nov 2022 13:01:14 +0100</pubDate>
      <guid>https://edbro.net/posts/connecting-a-mikrotik-accesspoint-to-routeros-via-capsman/</guid>
      <description>&lt;p&gt;After getting tiered of the shortcomings of commercial network equipment I decided to invest in some professional devices. However, investigating the different brands are even more difficult than for commercial products. In the end I decided to go for &lt;a href=&#34;https://mikrotik.com&#34;&gt;MikroTik&lt;/a&gt;, due to their small office offerings. The devices are great and when first connecting to them you realise their potential through the sheer volume of configuration. As expected you need to design and configure you network to get it to work at all. This made me realise that I have not touched professional network equipment since university, and that was Cisco equipment. To my dread I could not find a good guide on how to configure a simple network with my equipment, so after finishing this is my guide.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>After getting tiered of the shortcomings of commercial network equipment I decided to invest in some professional devices. However, investigating the different brands are even more difficult than for commercial products. In the end I decided to go for <a href="https://mikrotik.com">MikroTik</a>, due to their small office offerings. The devices are great and when first connecting to them you realise their potential through the sheer volume of configuration. As expected you need to design and configure you network to get it to work at all. This made me realise that I have not touched professional network equipment since university, and that was Cisco equipment. To my dread I could not find a good guide on how to configure a simple network with my equipment, so after finishing this is my guide.</p>
<h2 id="goals">Goals</h2>
<p>When setting up our network we have a couple of goals. Namely we want a stable network where we can plug in wired devices, as well as connect via Wi-Fi. For now we are happy with creating a single wireless network that all devices connect to, and that is not separated from the wired network. However, it would be possible to create a secondary guest network, separated from our trusted devices.</p>
<p>In addition to the main goal the network should be as easy to maintain as possible. The less configuration that can break the better, and the more resilient it is to changes the better.</p>
<h2 id="equipment-and-terminology">Equipment and Terminology</h2>
<p>Due to the configurability of the RouterOS firmware (the firmware used by MikroTik devices) this guide will likely be applicable for other devices as well. However, it is only tested with my setup of a <a href="https://mikrotik.com/product/RBwAP2nD">wireless access point</a>, and a <a href="https://mikrotik.com/product/RB750UPr2">router/switch combo</a>.</p>
<p>To make it easier to follow along while using other devices this guide will use the name (or Identity in RouterOS terms) cap for the access-point and capMan for the router/switch. The table below gives an overview of the name and role of each device.</p>
<table>
  <thead>
      <tr>
          <th>Device</th>
          <th>Model</th>
          <th>Identity</th>
          <th style="text-align: left">Role</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Wireless Access Point</td>
          <td><a href="https://mikrotik.com/product/RBwAP2nD">wAP</a></td>
          <td>CAP</td>
          <td style="text-align: left">The access-point used to provide Wi-Fi access</td>
      </tr>
      <tr>
          <td>Router/Switch</td>
          <td><a href="https://mikrotik.com/product/RB750UPr2">hEX PoE</a></td>
          <td>CAPMAN</td>
          <td style="text-align: left">The router switch combo used as the center of the network. It will be the manager configuring the access-point.</td>
      </tr>
  </tbody>
</table>
<p>To achieve our goal of maintainability we will use a function called <a href="https://wiki.mikrotik.com/wiki/Manual:CAPsMAN">CAPsMAN (Controlled Access Point system Manager)</a>. This will allow us to centrally manage the access point (and new access-points in the future) from a centralised point. The router will then send updates to all access-points, removing the need to manage them one by one.</p>
<h2 id="steps">Steps</h2>
<p>So how to configure a wireless network with MikroTik devices? I&rsquo;ve broken it down into two steps, first the preparations, and then configuring the Wi-Fi network.</p>
<h3 id="preparation">Preparation</h3>
<p>The first step to any network configuration is to ensure that each device is reachable and has a recognisable identity (name). I found that it was easiest to factory reset the access-point from the GUI, and choosing the cap preset. This puts the device into a bridge mode, disabling all router functionality and NAT. This gave a good starting point for the rest of the configuration.</p>
<p>With a reset access-point it is time to ensure that each device have a recognisable identity. As described in <a href="#equipment-and-terminology">Equipment and Terminology</a> I will use CAP for the access-point and CAPMAN for the router. It is also important to ensure that the devices has good passwords and are up to date, so I recommend doing so now.</p>
<p>To make it easier to troubleshoot the network I also recommend setting a static DHCP lease for the CAP device. In my case the following IP configuration is used:</p>
<table>
  <thead>
      <tr>
          <th>Device</th>
          <th>Name</th>
          <th>IP</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Router</td>
          <td>CAPMAN</td>
          <td>192.168.88.1</td>
      </tr>
      <tr>
          <td>Access-Point</td>
          <td>CAP</td>
          <td>192.168.88.2</td>
      </tr>
  </tbody>
</table>
<h3 id="configuring-a-wireless-network-with-mikrotik-devices">Configuring a Wireless Network with MikroTik Devices</h3>
<p>With our network in a state were we have a connection between CAPMAN and CAP we can begin to configure the network. The first step is to configure CAP to ask CAPMAN for configurations. This is done by using <code>[admin@CAP] &gt; /interface wireless cap set caps-man-addresses 192.168.88.1</code>. This command sets the address of the manager and ensures that it is the one responsible for the configuration.</p>
<p>Next up we need to configure the wireless network. This is done in multiple steps, as shown below.</p>
<pre tabindex="0"><code>[admin@CAPMAN] &gt; /caps-man security add name=&#34;wpa2psk&#34; authentication-types=wpa2-psk encryption=aes-ccm
[admin@CAPMAN] &gt; /caps-man security set 0 passphrase=[REDACTED]
[admin@CAPMAN] &gt; /caps-man configuration add name=master-cfg ssid=[My-Wifi-Network] security=wpa2psk country=sweden
[admin@CAPMAN] &gt; /caps-man provisioning add action=create-dynamic-enabled master-configuration=master-cfg
[admin@CAPMAN] &gt; /caps-man configuration set 0 datapath.bridge=bridge
[admin@CAPMAN] &gt; /caps-man manager set enabled yes
</code></pre><p>The first command will create a new security configuration, specifying that the Wi-Fi shall use wpa2-psk for authentication and AES encryption.
After that we set the password. This is the password used to connect to the wireless network when it gets activated.
The third step is to set the name of the Wi-Fi (the SSID). Note that we do not want to configure a band here. This will allow the CAP to create a network on 2.4ghz as well as on 5ghz. Otherwise, it would only create the network on the configured band. If we wish to configure the a second Wi-Fi, we would create a second configuration here and add it as a slave configuration in the next step.
On line 5 we provision the network to be created. This tells CAPMAN what configuration to push to what device.
This means that if you have multiple devices you can set what devices to push it to. For more information use the built-in help or the online documentation for provisioning.
The last row is the thing that got me confused. It tells the CAPMAN what bridge (interfaces) the network should be attached to. In my case this is the default bridge, and this allows devices to connected to the Wi-Fi to access the network.
The last step is to enable the CAPsMAN configuration on CAPMAN. This turns the configuration on and you should now be able to see your wireless network and connect to it.</p>
<p><strong>Note</strong> that if you wish to change something in an existing configuration you need to remove the configured interfaces and then trigger a re provision. This is done by:</p>
<pre tabindex="0"><code>[admin@CAPMAN] &gt; /caps-man interface print
# This shows all interfaces, remove all interfaces
[admin@CAPMAN] &gt; /caps-man interface remove 0
[admin@CAPMAN] &gt; /caps-man remote-cap print
[admin@CAPMAN] &gt; /caps-man remote-cap provision 0
# Reprovision all CAPs
</code></pre><p>There are lots more that can be done with CAPsMAN, but this should be a good starting point. However, I recommend the <a href="https://wiki.mikrotik.com/wiki/Manual:CAPsMAN">MikroTik wiki</a> to read up more on the options. There might be other things relevant for your needs.</p>
<h2 id="summary">Summary</h2>
<p>Setting up a wireless network with MikroTik infrastructure is quite easy, when you know what steps to take. The steps to take are on the managing device (CAPMAN):</p>
<ol>
<li>Set CAP to use CAPMAN for configuration.</li>
<li>Configure the security to use for the Wi-Fi.</li>
<li>Configure the password for the network.</li>
<li>Create a network configuration to use.</li>
<li>Provision the configuration to be pushed to access-points.</li>
<li>Configure datapath for the wireless network.</li>
<li>Enable the network</li>
</ol>
<p>And on the CAP:</p>
<ol>
<li>Configure the CAPsMAN manager to use.</li>
</ol>
<p>This should allow your CAPMAN to dynamically configure any access-points connected to provide network access.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Vulnerability Categories for Business</title>
      <link>https://edbro.net/posts/vulnerability-categories-for-business/</link>
      <pubDate>Sat, 05 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/vulnerability-categories-for-business/</guid>
      <description>&lt;p&gt;There are endless ways to divide vulnerabilities into different classifications. Each more granular than the other. However, there is also a need to for a simple divide, targeted to the business. That is the problem this post will solve. By using the same categories as in the post &lt;a href=&#34;https://edbro.net/posts/security-for-any-development-team/&#34;&gt;Security for Any Development Team&lt;/a&gt; I will break down security vulnerabilities into three categories. After reading this post, you will get an insight into why vulnerabilities may arise, and what can be done to minimise the risk.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>There are endless ways to divide vulnerabilities into different classifications. Each more granular than the other. However, there is also a need to for a simple divide, targeted to the business. That is the problem this post will solve. By using the same categories as in the post <a href="https://edbro.net/posts/security-for-any-development-team/">Security for Any Development Team</a> I will break down security vulnerabilities into three categories. After reading this post, you will get an insight into why vulnerabilities may arise, and what can be done to minimise the risk.</p>
<h2 id="the-three-categories-of-vulnerabilities">The Three Categories of Vulnerabilities</h2>
<p>The three categories are presented in this post are:</p>
<ol>
<li>Context Dependant Vulnerabilities</li>
<li>Business Logic Vulnerabilities</li>
<li>Vulnerabilities Abusing the Technology Stack</li>
</ol>
<h3 id="context-dependant-vulnerabilities">Context Dependant Vulnerabilities</h3>
<p>This group of vulnerabilities is mostly relevant in system development. They include vulnerabilities that are based on input and output of data. Whenever data is entered into the system, and then exit the system there is a risk of Context Dependant Vulnerabilities. One of the most common examples are Cross-Site Scripting vulnerabilities (also known as XSS). This vulnerability occurs when the system somehow allows a user to inject code into the website (JavaScript), that then will execute. In doing so the attacker gains access to everything on the webpage, allowing them to perform any action as the user. In this example the web application does not accurately handle the data that is input as text (string) and printed on the webpage (HTML encoded string).</p>
<p>This kind of issue mainly occurs when developing new systems or application. Therefore, it is important to have an awareness throughout the whole development process about the risk. The requirements, design, implementation and testing needs to take this kind of vulnerability into account. A good way to initiate discussions about this kind of vulnerabilities is <a href="https://en.wikipedia.org/wiki/Threat_model">Threat Modelling</a>. By threat modelling the team initiate a discussion about the system, any integrations between parts, as well as the risks that might occur.</p>
<p>Even though it seems to be a daunting task to look at all data flows, the good thing is that as long as no changes are made to the system, no new vulnerabilities will be introduced. Context dependant vulnerabilities are therefore stable, and will have a limited growth over time.</p>
<h3 id="business-logic-vulnerabilities">Business Logic Vulnerabilities</h3>
<p>Business Logic vulnerabilities occurs as a result of misunderstandings between the business and the team implementing the system. What happens if someone can abuse the business functions? A common example is the web shop that allowed users to order <code>-1</code> items, debiting their account accordingly. However this can be much more complex, and require an intricate understanding of the business.</p>
<p>To minimise the risk of this kind of vulnerabilities there are two things to do. Firstly the requirements for the system needs to be complete. They should not only indicate what functionality should be there, but also what should not be allowed. By detailing the requirements the business gives the team implementing the features a better understanding and therefore allow them to see the risks. The second step is a good old fashioned risk analysis. However, it is important to emphasise that the risk analysis should be of the system, not the project that implements it. In what way could the system be abused and what could the goals for an attacker be?. These questions needs to be answered to minimise the risk.</p>
<h3 id="vulnerabilities-abusing-the-technology-stack">Vulnerabilities Abusing the Technology Stack</h3>
<p>If the two previous kinds of vulnerabilities have their root in the development phase, this category is more based on configuration and maintenance. This is known vulnerabilities that occurs due to a lack of system hardening (e.g. weak passwords or outdated web-server). This also means that even though no further development of the system has occurred, new vulnerabilities may arise. When implementing the system it is important to harden the system, and then after release it should be maintained and its life cycle managed.</p>
<p>Due to the sheer number of devices relying on common software (such as web-servers or operating systems) this group of vulnerabilities are often used for non targeted attacks. For example a ransomware gang might not care whom it infects and therefore just scan the internet for vulnerable systems. These systems are then automatically infected. The goal is infecting as many victims as possible not just a single target.</p>
<p>Always updating soft- and hardware is an endless battle. A race against the attackers. How can we ensure that systems are up to date and hardened according to the latest standards? In addition, any update might have an impact to the functionality. Therefore there needs to be a balance with stability requirements.</p>
<p>This group might have the easiest solution, just update and configure, but the time investment is huge. Since you need to continuously need to maintain the system the investments are recurring. Depending on the size of the company the goals might be different. However, the risk of attack has to be weighed against the cost in an analysis for each business.</p>
<h2 id="summary">Summary</h2>
<p>Any business using IT systems needs to be aware of the kind of vulnerabilities that might impact them. By having a basic awareness and specify the requirements of their systems the business will be better equipped to manage their risk.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Migrating to Hugo</title>
      <link>https://edbro.net/posts/migrating-to-hugo/</link>
      <pubDate>Sun, 16 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/migrating-to-hugo/</guid>
      <description>&lt;p&gt;It has now come to an end of an era. The time has come to move on from from my previous way of building this blog (with Jekyll) to something new. For a while now I&amp;rsquo;ve been looking for a reason to dig some more into &lt;a href=&#34;https://go.dev/&#34;&gt;golang&lt;/a&gt;, so when i began looking for a new theme for my blog the choice to migrate to &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; came quite easy. At first glance it does exactly the same thing as &lt;a href=&#34;https://jekyllrb.com/&#34;&gt;Jekyll&lt;/a&gt;, but for someone who from time to time make changes to the theme it makes more sense (my personal opinion).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>It has now come to an end of an era. The time has come to move on from from my previous way of building this blog (with Jekyll) to something new. For a while now I&rsquo;ve been looking for a reason to dig some more into <a href="https://go.dev/">golang</a>, so when i began looking for a new theme for my blog the choice to migrate to <a href="https://gohugo.io/">Hugo</a> came quite easy. At first glance it does exactly the same thing as <a href="https://jekyllrb.com/">Jekyll</a>, but for someone who from time to time make changes to the theme it makes more sense (my personal opinion).</p>
<p><img alt="The old website, built in Jekyll" loading="lazy" src="/images/2022/Migrating-to-Hugo/jekyll.png" title="The old website"></p>
<h2 id="buidling-the-site">Buidling the Site</h2>
<p>The first thing to do when migrating is to find a new theme and adapt/move things into it. I ended up choosing <a href="https://github.com/adityatelange/hugo-PaperMod/">PaperMod</a>, due to its simplicity in combination with a modern look and feel. With that out of the way it was time to move my logotype and descriptive texts. In both cases this kind of information is stored in the configuration files.</p>
<p>The next step is to move the actual contents of the blog. In Jekyll this is stored in two folders (at least in my case):</p>
<ol>
<li>The posts: <code>/_posts</code> -&gt; <code>/content/posts</code></li>
<li>The images <code>/assets</code> -&gt; <code>/static/images</code></li>
</ol>
<p>With this out of the way it is time to go through every single post to update the syntax. The first thing is the metadata of the posts, the top of my markdown files. In my case there was no difference. The following is the configuration is what was used in Jekyll.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nn">---</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">layout</span><span class="p">:</span><span class="w"> </span><span class="l">post</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">title</span><span class="p">:</span><span class="w">  </span><span class="s2">&#34;Building a Webpage&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">date</span><span class="p">:</span><span class="w">   </span><span class="ld">2020-08-19</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">categories</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;Projects&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">tags</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&#34;Jekyll&#34;</span><span class="p">,</span><span class="w"> </span><span class="s2">&#34;Projects&#34;</span><span class="p">]</span><span class="w"> 
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">author</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;Oskar Edbro&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="nn">---</span><span class="w">
</span></span></span></code></pre></td></tr></table>
</div>
</div><p>The <code>layout</code> is just discarded, and the rest have the same functionality in both Jekyll and Hugo. With this knowledge it is time to look at how each post looks. And sadly there is a difference between how images are included. The good thing is that Hugo better handles the default image syntax from markdown. This means that images can be included as shown below:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-md" data-lang="md"><span class="line"><span class="cl">![<span class="nt">A phone with apps seen as privacy violations</span>](<span class="na">/images/2022/The-Modern-Con/The-Modern-Con-Privacy-Violation.jpg &#39;Photo by Jeremy Bezanger on Unsplash&#39;</span>)
</span></span></code></pre></div><p>With that all the modifications required for the application is finished. The next step is to polish the site with information and ensure that all information is available.</p>
<h2 id="hosting">Hosting</h2>
<p>Setting up the hosting i Decided to use GitHub Actions instead of just using the Cloudflare auto build (as I did previously in <a href="https://edbro.net/posts/migrating-to-cloudflare/">Migrating to Cloudflare</a>). This means that I am required to learn some thing about how to create a CICD Pipeline.</p>
<p>Getting everything to play nicely was a bit of a hazel, especially since I to insisted on separating the build and deploy actions into different jobs. In the end, the issue was in regards to saving and then retrieving the artefacts. When that issue was solved all went smooth. So how was it done? To build the page I used the following job:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="w">  </span><span class="nt">build</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">runs-on</span><span class="p">:</span><span class="w"> </span><span class="l">ubuntu-latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">steps</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Checkout</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/checkout@v3</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">submodules</span><span class="p">:</span><span class="w"> </span><span class="l">recursive</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Setup Hugo</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">peaceiris/actions-hugo@v2</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">hugo-version</span><span class="p">:</span><span class="w"> </span><span class="s1">&#39;latest&#39;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="c"># extended: true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Build with Hugo</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">env</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="c"># For maximum backward compatibility with Hugo modules</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">HUGO_ENVIRONMENT</span><span class="p">:</span><span class="w"> </span><span class="l">production</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">HUGO_ENV</span><span class="p">:</span><span class="w"> </span><span class="l">production</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">run</span><span class="p">:</span><span class="w"> </span><span class="p">|</span><span class="sd">
</span></span></span><span class="line"><span class="cl"><span class="sd">          hugo \
</span></span></span><span class="line"><span class="cl"><span class="sd">            --minify </span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Upload artifact</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/upload-artifact@v3</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">path</span><span class="p">:</span><span class="w"> </span><span class="l">${{ github.workspace }}/public</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">retention-days</span><span class="p">:</span><span class="w"> </span><span class="m">7</span><span class="w">
</span></span></span></code></pre></td></tr></table>
</div>
</div><p>Noteworthy things are the use of an existing Hugo build action, and saving the artefacts to my GitHub workspace. We also make sure to minify the generated HTML, just to save a bit of data. It does not make much difference, but every little bit counts. For the deployment, there are just two steps. Downloading the artefacts we saved, and then uploading them to Cloudflare. The project name has however been masked.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="w">  </span><span class="nt">deploy</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">runs-on</span><span class="p">:</span><span class="w"> </span><span class="l">ubuntu-latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">needs</span><span class="p">:</span><span class="w"> </span><span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">steps</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Download a single artifact</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/download-artifact@v3</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">path</span><span class="p">:</span><span class="w"> </span><span class="l">${{ github.workspace }}/public</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Publish</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">cloudflare/pages-action@1</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">apiToken</span><span class="p">:</span><span class="w"> </span><span class="l">${{ secrets.CF_API_TOKEN }}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">accountId</span><span class="p">:</span><span class="w"> </span><span class="l">${{ secrets.CF_API_ID }}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">projectName</span><span class="p">:</span><span class="w"> </span><span class="l">XXXXXX</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">directory</span><span class="p">:</span><span class="w"> </span><span class="l">./public</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">gitHubToken</span><span class="p">:</span><span class="w"> </span><span class="l">${{ secrets.GH_PAT }}</span><span class="w">
</span></span></span></code></pre></td></tr></table>
</div>
</div><h2 id="summary">Summary</h2>
<p>So in the end, it took more time than expected to migrate to Hugo. However, most of the time spent was in learning things. How to use GitHub Actions, how Hugo works, etc. With that out of the way, it was quite easy. Now, the next step is to start modifying the small things to get the theme even better.</p>
]]></content:encoded>
    </item>
    <item>
      <title>The Modern Con - Social Networks and Marketing</title>
      <link>https://edbro.net/posts/the-modern-con-social-networks-and-marketing/</link>
      <pubDate>Wed, 03 Aug 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/the-modern-con-social-networks-and-marketing/</guid>
      <description>&lt;p&gt;In todays internet based world, phishing has become a great nuisance. We all know about the emails trying to trick the receiver to perform an action that is to the senders gain. This could be to install malware, send money, or something else. Either way, this is just the newest variant of the con (aka confidence game) to trick someone for gains. After reading &lt;a href=&#34;https://www.mariakonnikova.com/books/the-confidence-game/&#34;&gt;The Confidence Game&lt;/a&gt; by Maria Konnikova I got to thinking. Where goes the line between a con and business?&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In todays internet based world, phishing has become a great nuisance. We all know about the emails trying to trick the receiver to perform an action that is to the senders gain. This could be to install malware, send money, or something else. Either way, this is just the newest variant of the con (aka confidence game) to trick someone for gains. After reading <a href="https://www.mariakonnikova.com/books/the-confidence-game/">The Confidence Game</a> by Maria Konnikova I got to thinking. Where goes the line between a con and business?</p>
<p><img alt="A phone with apps seen as privacy violations" loading="lazy" src="/images/2022/The-Modern-Con/The-Modern-Con-Privacy-Violation.jpg" title="Photo by Jeremy Bezanger on Unsplash"></p>
<p>The easy answer would be that you get something from a business, but not from a con. However, the answer might not be that straight forward. If you pay for rubbing alcohol, but get alcohol of 40%, is that a con? If the battery life of your device is not the same as described by the seller? Where is the line? My conclusion is that today&rsquo;s business practices, especially in the consumer world, tricks that are used in a con are applied as a business strategy.</p>
<p>For example, lets take a look at social media from a con perspective. What value does eg. Facebook provide? It helps us keep in touch with our friends. But how many of our Facebook friends do we need to keep in touch with? This could just as well be an introduction to a con, a put up. When we are on the platform, they rope you in. No doubt you get a kick of seeing the numbers go up. The amount of engagement is a reward for your continued use of the platform. All you need to do is share a picture, an update, or something else, and it is all free, right? The thing you do not think about is that you  pay with your data. Facebook uses everything they know about you to sell you as ads. The more data you share, and the more time you spend on the platform, the more value you have to Facebook.</p>
<p>Most people understand the privacy violations of Facebook, but they still stay on the platform. FOMO (Fear Of Missing Out) is one big cause. Another might be that leaving would mean a change of self image. Is this updated image how we wish to be seen. In the con it is well known that given the choice most people prefer to not make changes. We stick to what we have and know over something new, why risk it.</p>
<p><img alt="A train in the fog" loading="lazy" src="/images/2022/The-Modern-Con/The-Modern-Con-Uncertain-Train.jpg" title="Photo by Guilherme Stecanella on Unsplash"></p>
<p>This mentality of non change is used (or abused) in many other areas than social networking. It is one of the reasons that marketing is so effective. If we can get someone to use our brand, they are far more likely to do the same next time. For example when was the last time you investigated a change of mobile carrier? Are there any better alternatives? The same tactic is used by conmen to get victims to keep coming back for eg. seances that might warn of an incident in the future.</p>
<p>I will end this post with a quote from the book by Maria Konnikova:</p>
<blockquote>
<p>Ultimately, what a confidence artist sells is hope. Hope that you&rsquo;ll be happier, healthier, richer, loved, accepted, better looking, younger, smarter, more fulfilled human being - hope that the you that will emerge in the other side will be somehow superior to the you that came in.</p></blockquote>
<p>If this is not applicable to social media, I do not know what is. We hope that we will be happier by gaining a following, by being seen. But that is not always the case. Therefore, I would argue that the line between a con and legitimate business is in the eyes of the beholder.</p>
<h2 id="photos">Photos</h2>
<p>Photos from <a href="https://unsplash.com/">Unsplash</a></p>
<ol>
<li>Photo by <a href="https://unsplash.com/@unarchive?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jeremy Bezanger</a> on <a href="https://unsplash.com/s/photos/stolen?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
<li>Photo by <a href="https://unsplash.com/@guilhermestecanella?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Guilherme Stecanella</a> on <a href="https://unsplash.com/s/photos/interchange-train?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Learning (Security) by Communication</title>
      <link>https://edbro.net/posts/learning-security-by-communication/</link>
      <pubDate>Mon, 25 Jul 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/learning-security-by-communication/</guid>
      <description>&lt;p&gt;Anyone working in Cybersecurity can tell you that there are endless fields of specialisation. For example, helping R&amp;amp;D through AppSec, hacking companies through red-teaming, or responding to incidents in a CyberSecurity Incident Response Team (CSIRT). Regardless of speciality, there are skills you will have mastered, and ones you haven&amp;rsquo;t.  In addition to the skills there are knowledge, ways of working etc. connected to each field.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;An aerial view of lots of fields&#34; loading=&#34;lazy&#34; src=&#34;https://edbro.net/images/2022/Cross-Diciplin-Communication/Cross-Diciplin-Fields.jpg&#34; title=&#34;hoto by Rod Long on Unsplash&#34;&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Anyone working in Cybersecurity can tell you that there are endless fields of specialisation. For example, helping R&amp;D through AppSec, hacking companies through red-teaming, or responding to incidents in a CyberSecurity Incident Response Team (CSIRT). Regardless of speciality, there are skills you will have mastered, and ones you haven&rsquo;t.  In addition to the skills there are knowledge, ways of working etc. connected to each field.</p>
<p><img alt="An aerial view of lots of fields" loading="lazy" src="/images/2022/Cross-Diciplin-Communication/Cross-Diciplin-Fields.jpg" title="hoto by Rod Long on Unsplash"></p>
<p>We as cybersecurity professionals need to be better at leveraging this diversity of skills and knowledge to our advantage.  We can learn from each other when it comes to securing our business, because that is what&rsquo;s most important. There is no need to be territorial about our knowledge, we need to share with and learn from others. This is not only applicable for skills and knowledge, but also for ways of working and other methodology. It is always a good idea to leverage the diversity of a group.</p>
<h2 id="it-and-ot-security">IT and OT-Security</h2>
<p>Two fields that rarely communicate, but I feel could learn lots from each other are IT and OT security.  There are things in both areas that are not transferable between them, but that does not mean that nothing can be transferred. For example IT and OT is moving towards convergence on a technical level, therefore it could do the same on a technical level.</p>
<p>The following talk by Mats Karlsson Landré is a great starting point for this kinds of discussions. Here he describes the current state of OT-Security, and at what points a discussion between IT and OT professionals will be relevant.</p>


<h2 id="lawyers-and-practitioners">Lawyers and Practitioners</h2>
<p>When we talk about cybersecurity professionals we should not get stuck in the box with whom we are talking to. For example a lawyer could be invaluable for a practitioner, regardless if they are technical penetration testers or management consultants writing a policy. For example a penetration test could yield extra findings due to stricter regulations for healthcare providers. If you only know the technical part, how would you know the difference?</p>
<p>In the other direction lawyers might get better at triaging after discussing with the Security Operation Center (SOC) team. In their field it is important to get a priority at a glance, and know what tasks needs to be fixed immediately and which can wait.</p>
<h2 id="security-and-developers">Security and Developers</h2>
<p>Due to my work in AppSec, my experience of the importance of sharing is not only with other security professionals. It is just as much, if not more, with developers. When it comes to complex vulnerabilities in a system I often discuss them with developers. Since I need to support developers for different systems, programming languages, and deployments I cannot be an expert of the ins and outs of each of them. Therefore, it is much more efficient to have a discussion with an expert. Often when I describe the risk (how I think it will be possible to exploit something) the developer can show how it is not a problem, or we together build an exploit that helps the developer understand why it is an issue. Either way, we build trust with the development team, I learn about the specific system/language etc, and the developers learn about potential risks to avoid. All of which are desirable outcomes.</p>
<p><img alt="Two persons sitting in front of a computer cooperating on a problem" loading="lazy" src="/images/2022/Cross-Diciplin-Communication/Cross-Diciplin-Pair-Programming.jpg" title="Photo by Alvaro Reyes on Unsplash"></p>
<h2 id="conclusion">Conclusion</h2>
<p>The security field, as well as IT in general is a huge field. No one can be an expert at everything, but everyone has their niche. To protect the business as well as we can we need to communicate between disciplines and learn from each other.</p>
<p>By just working together and getting the chance to get a common language and ask why to things the overall understanding increases in the organisation, while the overall risk is lowered.  When everyone get to ask questions, we broaden our views and sees things from other points of view. In doing so we also find both problems and solutions that otherwise never would have been found.</p>
<p>For anyone interested in the benefits of great communication (outside security), and generally on how to improve a workplace I must recommend anything by <a href="https://adamgrant.net/">Adam Grant</a>. He has TED talks, books and podcasts etc. Usually all of them gives insights into how we can improve the workplace.</p>
<h2 id="photos">Photos</h2>
<p>Photos from <a href="https://unsplash.com/">Unsplash</a></p>
<ol>
<li>Photo by <a href="https://unsplash.com/@rodlong?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Rod Long</a> on <a href="https://unsplash.com/s/photos/aerial-fields?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
<li>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alvaro Reyes</a> on <a href="https://unsplash.com/s/photos/pair-programming?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>An Overview of Security Champions</title>
      <link>https://edbro.net/posts/an-overview-of-security-champions/</link>
      <pubDate>Sun, 19 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/an-overview-of-security-champions/</guid>
      <description>&lt;p&gt;Security Champions is a concept that gets more and more attraction. The function might go under another name, such as Security Masters, but the concepts are the same. In this post I will dig into what this role contains and how it can be applied to improve the security posture of an organisation. My experience with Security Champions is in Research and Development organisations, so my views are anchored in RnD. However I see no reason why Security Champions could not be applied in other kinds of organisations as well.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Security Champions is a concept that gets more and more attraction. The function might go under another name, such as Security Masters, but the concepts are the same. In this post I will dig into what this role contains and how it can be applied to improve the security posture of an organisation. My experience with Security Champions is in Research and Development organisations, so my views are anchored in RnD. However I see no reason why Security Champions could not be applied in other kinds of organisations as well.</p>
<p><img alt="An image of a woman in a stream of data" loading="lazy" src="/images/2022/Security-Champions/Security-Champion-in-the-data.jpg" title="Photo by mahdis mousavi on Unsplash"></p>
<h2 id="what-are-security-champions">What are Security Champions?</h2>
<p>Security Champions are individuals throughout the organisation that takes an extra responsibility about security. Exactly how many there are varies, from one per dev-team to one per product or office location. The goal is to have a local contact that ensures that security is on the agenda.</p>
<p>This does not mean that the Security Champion is doing everything about security in their part of the organisation. The clue is in the name, Security Champion, they should <strong>Champion</strong> security. Keeping tabs on what is going on, asking questions and being a natural communication way between the organisation and the security department. This communication should be two-way, both from the security specialists to the organisation (eg. we have a new tool you can use) and back (eg. we are implementing this and could use help assess the risk).</p>
<p><img alt="An image of a pair of hands pulling on a rope" loading="lazy" src="/images/2022/Security-Champions/Security-Champion-pulling-their-load.jpg" title="Photo by Stijn Swinnen on Usplash"></p>
<h2 id="why-use-security-champions">Why use Security Champions?</h2>
<p>Security Champions are a great way to broaden the security team. To get the security team to reach the whole organisation is a big challenge, but by using Security Champions as a middle man one can gain a lot. In addition to just advocating for security throughout the organisation, they have a better understanding about their business area, and therefore they are also better equipped to find the risks. The main goal of the Security Champions is not to take them from their original tasks, rather to give them the tools to continue doing so while ensuring that they and their colleagues keep security and risk in mind.</p>
<p>In the end, Security Champions allow the dedicated security team to effortlessly spread information to, and collect information from the whole organisation</p>
<h2 id="how-to-implement-security-champions-efficiently">How to Implement Security Champions Efficiently?</h2>
<p>To successfully implement a Security Champion program is not a thing that can be done overnight. It takes dedication and time. From experience, I would recommend the following steps to build a successful Security Champion program:</p>
<ol>
<li>Build interest in security</li>
<li>Educate the Security Champions</li>
<li>Give the freedom to make an impact</li>
<li>Exchange information between Security Champions and the security team</li>
<li>Motivate through networking between Security Champions in different parts of the organisation</li>
</ol>
<p>Let us dig a bit deeper into each of these steps. First we have to find our Security Champions. The good Security Champions needs to have a genuine interest in security. That is not that common to begin with, but it can be nurtured. For example if you have security awareness training, this is a great occasion to motivate and build the interest in  security. In addition, you can find the individuals who are interested and recruit them as Security Champions.</p>
<p>With our Security Champions found it is time to ensure that they feel important. Otherwise, the risk of them loosing interest will be rising. It cannot only be a hazel to be a Security Champion, it must give something back as well. That might be the possibility to learn more things over time. My recommendation is to arrange an initial Security Champion Training in areas relevant to your organisation, and then continuously (eg. yearly) arrange something new and interesting, such as inviting a guest lecturer or an internal conference.</p>
<p>During their time as Security Champions everyone needs to be able to make an impact. They need their freedom to drive security forward in their area. As with everything this is done through giving responsibilities as well as mandate to make decisions. In addition, they need to have the time provided to make a difference. Once more, being a Security Champion should not be a hazzle.</p>
<p>Lastly I recommend creating a network of Security Champions throughout the organisation. This network should meet regularly to exchange learning, as well as discuss news that have an impact on the organisation. This is also a great time to align the security work, ensuring that the Security Champions and the Security Team are working together towards a common goal.</p>
<p><img alt="An image of a group of people celebrating their achievement" loading="lazy" src="/images/2022/Security-Champions/Security-Champion-Together.jpg" title="Photo by Samrat Khadka on Unsplash"></p>
<h2 id="conclusion">Conclusion</h2>
<p>Security Champions are a great way to extend the security teams reach throughout the organisation. By educating and networking we build a set of individuals that can work together to champion security, and keep it on the agenda everywhere. In addition, the Security Champions improves the information flow around security throughout the organisation, increasing the visibility of the security team, making it more likely that important questions reach them. ''</p>
<p>Overall the goal with Security Champions is communication and alignment. Ensuring that the organisation is aware of risks and actively works towards being more secure.</p>
<h2 id="photos">Photos</h2>
<p>Photos from <a href="https://unsplash.com/">Unsplash</a></p>
<ol>
<li>Photo by <a href="https://unsplash.com/@dissii?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">mahdis mousavi</a> on <a href="https://unsplash.com/collections/8791556/security?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
<li>Photo by <a href="https://unsplash.com/@stijnswinnen?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Stijn Swinnen</a> on <a href="https://unsplash.com/s/photos/champion-lift?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
<li>Photo by <a href="https://unsplash.com/@samrat_khadka?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Samrat Khadka</a> on <a href="https://unsplash.com/s/photos/teamwork?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Privacy not Included</title>
      <link>https://edbro.net/posts/privacy-not-included/</link>
      <pubDate>Thu, 26 May 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/privacy-not-included/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve previously written about the difficulties of keeping up to date with the current privacy policies of products one is using. Not only are they updated regularly, they are also long and complex. Here &lt;a href=&#34;https://www.mozilla.org/&#34;&gt;Mozilla&lt;/a&gt;, the non profit organisation behind Firefox among other things, have created &lt;a href=&#34;https://foundation.mozilla.org/en/privacynotincluded/&#34;&gt;Privacy not Included&lt;/a&gt; to help.&lt;/p&gt;
&lt;p&gt;Privacy not included is a tool where experts investigates the privacy of different products, and gives clear information both what is said in the policy and what data it collects (permissions, sensors on the device etc.). In addition to pure privacy related analysis, information about the basic security of the product as well as the use of AI is investigated. Even though Privacy not Included does not contain all products around the world, there are lots of them and some of the results are surprising. Enough so to get me to get stuck just reading the analysis while reading up for this post. And if there is a product missing that you would love to see investigated, there is an easy form to request products to be analysed in the future.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve previously written about the difficulties of keeping up to date with the current privacy policies of products one is using. Not only are they updated regularly, they are also long and complex. Here <a href="https://www.mozilla.org/">Mozilla</a>, the non profit organisation behind Firefox among other things, have created <a href="https://foundation.mozilla.org/en/privacynotincluded/">Privacy not Included</a> to help.</p>
<p>Privacy not included is a tool where experts investigates the privacy of different products, and gives clear information both what is said in the policy and what data it collects (permissions, sensors on the device etc.). In addition to pure privacy related analysis, information about the basic security of the product as well as the use of AI is investigated. Even though Privacy not Included does not contain all products around the world, there are lots of them and some of the results are surprising. Enough so to get me to get stuck just reading the analysis while reading up for this post. And if there is a product missing that you would love to see investigated, there is an easy form to request products to be analysed in the future.</p>
<p>For anyone looking for some shocking reads the categories <em>Dating apps</em> and <em>Mental Health apps</em> exist at the time of writing, and the policies of some companies in these areas are truly shocking. So if you have some time on your hands, Privacy not Included is well worth a visit. Either to check out the products you have and use, or to just look around at the warnings for future purchases.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Basic Network Security for Small Businesses</title>
      <link>https://edbro.net/posts/basic-network-security-for-small-businesses/</link>
      <pubDate>Sun, 22 May 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/basic-network-security-for-small-businesses/</guid>
      <description>&lt;p&gt;In today&amp;rsquo;s connected world every little store or office needs internet, and the usual way to implement that is by setting up a WiFi. There are endless products that allow for a plug and play experience for the less tech-savvy users. However, there are some common traps that someone inexperienced might fall into when setting up a network. In this post I will discuss some of these traps and what risk they might impose.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In today&rsquo;s connected world every little store or office needs internet, and the usual way to implement that is by setting up a WiFi. There are endless products that allow for a plug and play experience for the less tech-savvy users. However, there are some common traps that someone inexperienced might fall into when setting up a network. In this post I will discuss some of these traps and what risk they might impose.</p>
<p><strong>Note</strong>: Any specific examples in this post are fictional, but the concepts are quite common from looking around and talking to businesses.</p>
<h3 id="separate-guests-and-internal-users">Separate Guests and Internal Users</h3>
<p>To minimise the exposure of the systems the business require to operate and therefore also minimize the risk it is important to reduce the number of people whom have access to the network. The main thing here is to keep any visitors (or customers) from accessing the same network as the internal systems (fileservers, cash registers etc.). A common solution for this is to have two separate networks, a guest network and a company network. For larger companies this separation might need to be taken even further, but this is a great first step.</p>
<p>The main goal with separation is to implement what is commonly called Defence in Depth. This means that if one of the security measures would fail, all would not be lost. Instead there would be another defence that would hinder the attack. By restricting what an attacker can access, the risk that they can exploit a vulnerability decrease as well.</p>
<h3 id="secure-the-internal-network">Secure the Internal Network</h3>
<p>No matter how well separated the internal network (and its users) are from the external users it has no effect if there are ways to circumvent the separation. For example if in a café a customer can plug into the access-point and access the internal network. Another perhaps more common error is to have an easily guessable password for the internal network. If the WiFi name is used as password, it is the same as if there was no password at all. An attacker would swiftly test different passwords, and the name of the network would absolutely be one of the first ones.</p>
<h3 id="change-default-settings">Change Default Settings</h3>
<p>After taking a look at the network as a whole it is time to look at the systems on the network. When adding a new system it is important to take a look at the vendors configuration recommendations. Are there any security features that can be enabled? Another important step is to change any default passwords in the system.</p>
<p>Overall the goal in this step is to minimise the risks by utilising any defences of the systems on the network.</p>
<h3 id="keep-systems-updated">Keep Systems Updated</h3>
<p>Lastly, all devices on the network needs to be maintained. Vulnerabilities will be found in the solutions used on the network, and there is nothing that can be done about it. As a business owner the only thing to do is to be aware and ensure to have a regular update schedule. When a vulnerability pops up, the patch needs to be applied as soon as possible. One way to do this is by automating the installation of updates. This ensures swift updates without adding the overhead of keeping track of when updates are released and applying them manually.</p>
<p>Installing updates without first testing them adds another risk in the form of supply chain attacks. However, the risk in comparison to the cost of mitigation is quite low. Every business needs to make their own analysis, but from my point of view, the benefit of swift updates outweigh the risks for most small companies.</p>
]]></content:encoded>
    </item>
    <item>
      <title>IT vs OT Security</title>
      <link>https://edbro.net/posts/it-vs-ot-security/</link>
      <pubDate>Sat, 26 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/it-vs-ot-security/</guid>
      <description>&lt;p&gt;When people are talking about cybersecurity they are often talking about IT-security, but there are also OT-security. But what are the difference? Most people in tech know what IT is, the tech that handles information. The focus is on handling data, collecting, modifying or providing it. OT (Operational Technology) on the other hand is focused on the tech that impacts the real world. An example could be a control-system that manages the indoor climate in an office. An easy example are the smart homes, where IoT devices control the the house.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When people are talking about cybersecurity they are often talking about IT-security, but there are also OT-security. But what are the difference? Most people in tech know what IT is, the tech that handles information. The focus is on handling data, collecting, modifying or providing it. OT (Operational Technology) on the other hand is focused on the tech that impacts the real world. An example could be a control-system that manages the indoor climate in an office. An easy example are the smart homes, where IoT devices control the the house.</p>
<p>But what are the differences when it comes to how to secure OT? The main thing is to be aware of the system that shall be secured. Just as with IT security it is important to classify the system, but not only classifying the information. Instead the classification should include the risk and the impacts of an attack, both for the information and the operations in the real world. An electronic locking system could both be attacked to gain information (whom is entering and exiting), locking people in or out (disturbing the business), or unlocking (enabling unauthorized access).</p>
<p>Due to the added impacts of an attack OT has, there is an extra focus on safety. When downtime can result in the loss of human life, everything gets a deeper meaning. This also shows in the patch cycles. Where a slow IT system can be patched once a quarter or year, OT can be patched every ten years. When any downtime results in the industry needing to be stopped, or have disastrous consequences, the stability is rated much higher than updates. Instead of patching a vulnerability it is easier to just add some kind of protection minimizing its exposure.</p>
<p>In the end the difference between IT and OT security are not so different. Even though the tech often is different, and the impact if an error occur is more severe, the basic principles of IT security is still applicable. It is still important to validate everything (input, users, authorization etc.), ensuring access control and so on. This is especially true in the development process of OT, since the update schedule is so much longer, meaning that we can draw further lessons from old, slow development cycles. Looking forward OT is standing in front of the challenge of allowing updates without risking devastating errors.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Decision-Making in Security</title>
      <link>https://edbro.net/posts/decision-making-in-security/</link>
      <pubDate>Sat, 19 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/decision-making-in-security/</guid>
      <description>&lt;p&gt;As in all fields there are lots of decisions that has to be taken in Cyber Security. But how can we maximise our chances to take the correct decisions? This question has many answers, but from my experience many of them boil down to information. To make the correct decision one needs to make an informed decision.&lt;/p&gt;
&lt;p&gt;But what information is it that is needed, and how can we gather it efficiently? This depends on the decision to be taken, but let&amp;rsquo;s try to boil it down to some general guidelines that can be applied to all decisions. The first step is to split the information into two categories, internal and external. The external information is what usually comes from Cyber Threat Intelligence. This can answer questions that are generalized outside the own organisation, such as &lt;em&gt;&amp;ldquo;What attack vectors are most commonly used to by attackers to gain a foothold in organisations?&amp;rdquo;&lt;/em&gt; How to find the answers of these questions is an area of it&amp;rsquo;s own, so I&amp;rsquo;m not going to dig deep into it, instead we leave the answers to this kind of questions to external reports published by researchers focusing in the area. A common example of this is OWASP top 10 that shows the most common attacks used to attack web applications. There is however a secondary kind of external information needed to make good decisions in, and that is in regards to the legal or regulatory requirements. These impact all areas of the business, including cyber security.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>As in all fields there are lots of decisions that has to be taken in Cyber Security. But how can we maximise our chances to take the correct decisions? This question has many answers, but from my experience many of them boil down to information. To make the correct decision one needs to make an informed decision.</p>
<p>But what information is it that is needed, and how can we gather it efficiently? This depends on the decision to be taken, but let&rsquo;s try to boil it down to some general guidelines that can be applied to all decisions. The first step is to split the information into two categories, internal and external. The external information is what usually comes from Cyber Threat Intelligence. This can answer questions that are generalized outside the own organisation, such as <em>&ldquo;What attack vectors are most commonly used to by attackers to gain a foothold in organisations?&rdquo;</em> How to find the answers of these questions is an area of it&rsquo;s own, so I&rsquo;m not going to dig deep into it, instead we leave the answers to this kind of questions to external reports published by researchers focusing in the area. A common example of this is OWASP top 10 that shows the most common attacks used to attack web applications. There is however a secondary kind of external information needed to make good decisions in, and that is in regards to the legal or regulatory requirements. These impact all areas of the business, including cyber security.</p>
<p>Based on the external intelligence it is time to look inwards. What intelligence can we find internally, and how do we use it. Here we once more need to figure out what the end goal is. After that we need to ask the correct questions. The answers to the questions are often distributed among products or departments, and therefore there can be lots of data collected. However data is not everything, you need to interpret the data to gain insights that are applicable to the task at hand.</p>
<p>Let&rsquo;s look at an example, were in our system is there a need for further investments to increase our overall security posture. We begin by looking externally at what are the most common attack vector for malicious actors and after some research we find that outdated software with known vulnerabilities is the biggest risk. Based on this we need to ask internal questions. The first question to ask is do we know what known vulnerabilities exists in our environment. Therefore we go to all system owners to verify that they scan their systems with the vulnerability scanner. If not this is a good place to start. If not, we move forward and look at the findings for each system. Depending on our focus we can ask different questions:</p>
<ol>
<li>Which systems has the most risks?</li>
<li>Which systems has the most critical risks?</li>
<li>Which systems have a negative trend, gaining more vulnerabilities over time?</li>
</ol>
<p>Based on the question we wish to focus on we can make a decision on where to invest.</p>
<p>One note however, whatever we chose we have to remember that the reason for measuring is making good decisions to improve security. We need to ensure that everyone has what they need to reach the goals, not to blame the ones that do not reach them. This is true for everyone, not only in security, but for measuring everything. And in this context the end goal is to make good decisions.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Comments on the use of Open Source</title>
      <link>https://edbro.net/posts/comments-on-the-use-of-open-source/</link>
      <pubDate>Thu, 06 Jan 2022 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/comments-on-the-use-of-open-source/</guid>
      <description>&lt;p&gt;After the devastating vulnerability in Log4j last month we&amp;rsquo;ve seen some changes in how companies view open source. The ones whom previously had no policies at all have now began looking into this. For now the main thing we see is asking the question about where Log4j has been used, but that will likely change to.&lt;/p&gt;
&lt;p&gt;It is important for all the users of open source to understand the nature. You cannot just expect or pressure the maintainers to update their software. Especially not if you use something with a small group of maintainers or being maintained in the spare time. Instead you have to get into the open source mindset and take advantage of the fact that everything is open. This means that anyone can read the code, and if needed create a fix. If a company decides to use free open source software they cannot expect the same level of service as if they bought a commercial product, but instead be ready to either wait or do the work themselves.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>After the devastating vulnerability in Log4j last month we&rsquo;ve seen some changes in how companies view open source. The ones whom previously had no policies at all have now began looking into this. For now the main thing we see is asking the question about where Log4j has been used, but that will likely change to.</p>
<p>It is important for all the users of open source to understand the nature. You cannot just expect or pressure the maintainers to update their software. Especially not if you use something with a small group of maintainers or being maintained in the spare time. Instead you have to get into the open source mindset and take advantage of the fact that everything is open. This means that anyone can read the code, and if needed create a fix. If a company decides to use free open source software they cannot expect the same level of service as if they bought a commercial product, but instead be ready to either wait or do the work themselves.</p>
<p>In the aftermath of Log4j there have been several of examples of harsh communication with maintainers. I hope that things will get better, and that  companies get a better understanding of the implications of using open source. This does not only include the implications of bugs (security or other), but also the importance of being aware of the license agreements of open source. Sadly not everyone understand what can be expected of the software, and what can and cannot be used under what circumstances.</p>
<p>These are just a couple of considerations when using open source software, there are many more. Each company needs to their own assessment and decide how they will work with open source software. Let&rsquo;s all do our part in asking the correct questions and spreading awareness, so that everyone can use the many benefits of open source.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Something Needs to Change about All These Agreements</title>
      <link>https://edbro.net/posts/something-needs-to-change-about-all-these-agreements/</link>
      <pubDate>Sat, 04 Dec 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/something-needs-to-change-about-all-these-agreements/</guid>
      <description>&lt;p&gt;The end of the year draws closer, and for many so does the stress of preparing for the holidays. Many are buying gifts, and the companies know it, and therefore the amount of pure ads in my inbox sky rocket at this time. But there are also other communications, I&amp;rsquo;m talking about the many updates to terms from companies.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;Photo of a stack of Papers&#34; loading=&#34;lazy&#34; src=&#34;https://edbro.net/images/2021/change-license/christa-dodoo-paperstackunsplash.jpg&#34; title=&#34;Image by Christa Dodoo on Unsplash&#34;&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>The end of the year draws closer, and for many so does the stress of preparing for the holidays. Many are buying gifts, and the companies know it, and therefore the amount of pure ads in my inbox sky rocket at this time. But there are also other communications, I&rsquo;m talking about the many updates to terms from companies.</p>
<p><img alt="Photo of a stack of Papers" loading="lazy" src="/images/2021/change-license/christa-dodoo-paperstackunsplash.jpg" title="Image by Christa Dodoo on Unsplash"></p>
<p>Looking at my inbox I&rsquo;ve got five updates just the last week. Some are updates to the privacy policy and some to the terms of use. The thing they all have in common is that they should be read, understood and accepted before they take effect. The question for me is, when will I find the time to read the changes? Most of the ones in my inbox provides a short summary of the most important changes and a full link to the new agreement. However, the summary are often in the form of &ldquo;we have made changes to X&rdquo;, without describing the change. So to accept the changes I need to find the section mentioning this and read it. To make things worse, some of these summaries seems to be run through automatic translation without proper validation. When reading it the best way of understanding is to use English grammar in non English text.</p>
<p>I feel like the current solution with this kind of agreements are not sustainable. They are written by lawyers for lawyers, and not for the average end user. Kevin Litman-Navarro published a great <a href="https://www.nytimes.com/interactive/2019/06/12/opinion/facebook-google-privacy-policies.html?mtrref=edbro.net&amp;assetType=FREE&amp;gwh=127830D345AC2A464C376CB58A8D7441&amp;gwt=pay">piece</a> in the NY Times a couple of years ago on the state of privacy policies. Even though it&rsquo;s from 2019, it still holds true, describing how difficult these policies can be to read, and especially understand. By putting them on a difficulty scale, most are comparable to (or more difficult than) college textbooks. These texts are we as users expected to read for each service we use. Can we spend the 20 minutes it takes to read and understand the agreements for every service? For me that&rsquo;s impossible, instead I prioritize, what services do I feel the need to read the agreements for.</p>
<p>I still understand the need for service providers to have a specific agreement. But there has to be a better way. An easier way. A way that provides an entry point for us as users and clearly describes what we agree to without having to dig into these long and complex texts. But how? That&rsquo;s a great question that I hope will be discussed more. Because as it is, these mails I get about the changes just stack up in my inbox, waiting for me find the time and energy to dig into them. And the stack just seems to be growing.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Measuring Security, OWASP SAMM</title>
      <link>https://edbro.net/posts/measuring-security-owasp-samm/</link>
      <pubDate>Sun, 26 Sep 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/measuring-security-owasp-samm/</guid>
      <description>&lt;p&gt;When working with cybersecurity in any development organization it is inevitable that management asks the difficult question. The question that puts us in a very difficult position of grasping the current status of the organizations security efforts. The question I am talking about is as follows, or a version of:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;How far have we come in our work with cybersecurity?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It is an understandable question. We need to see that the time and money put into security are adding value to the business. However assessing the progress in a comparable way is not always easy. As luck would have it there are standards for measuring the maturity level of cybersecurity. One of these models are &lt;a href=&#34;https://owaspsamm.org/model/&#34;&gt;OWASP Software Assurance Maturity Model&lt;/a&gt;, SAMM for short. As it is provided by OWASP it is an open source model that can be used by anyone free of charge, and the results are comparable both over time and between organizations. There are other models that do similar things, but due to the open nature of SAMM it&amp;rsquo;s a good starting point for any organization getting started.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When working with cybersecurity in any development organization it is inevitable that management asks the difficult question. The question that puts us in a very difficult position of grasping the current status of the organizations security efforts. The question I am talking about is as follows, or a version of:</p>
<blockquote>
<p>How far have we come in our work with cybersecurity?</p></blockquote>
<p>It is an understandable question. We need to see that the time and money put into security are adding value to the business. However assessing the progress in a comparable way is not always easy. As luck would have it there are standards for measuring the maturity level of cybersecurity. One of these models are <a href="https://owaspsamm.org/model/">OWASP Software Assurance Maturity Model</a>, SAMM for short. As it is provided by OWASP it is an open source model that can be used by anyone free of charge, and the results are comparable both over time and between organizations. There are other models that do similar things, but due to the open nature of SAMM it&rsquo;s a good starting point for any organization getting started.</p>
<p>The SAMM model measures 15 security practices in five business areas. Each practice contains two streams, represented by a set of activities and resulting in a maturity level on a scale from 1 - 3. In addition to helping the organization find lowpoints in their work with cybersecurity the activities can give a hint of good next steps. Even though the policy in it self does not specify a way to summarize the scores for each activity, it is possible to summarize the scores into a practice or business area to get a better overview. I&rsquo;ve seen other models using <a href="https://en.wikipedia.org/wiki/Radar_chart">radar charts</a> to display the results, and I think it would be applicable here as well. An example would be to summarize the actions for each practice and then put all 15 practices into the diagram. But which are the practices. In the table below the business areas are the headers, and then the practices are listed below.</p>
<table>
  <thead>
      <tr>
          <th>Governance</th>
          <th>Design</th>
          <th>Implementation</th>
          <th>Verification</th>
          <th>Operations</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Strategy &amp; Metrics</td>
          <td>Threat Assessment</td>
          <td>Secure Build</td>
          <td>Architecture Assessment</td>
          <td>Incident Management</td>
      </tr>
      <tr>
          <td>Policy &amp; Compliance</td>
          <td>Security Requirements</td>
          <td>Secure Deployment</td>
          <td>Requirements-driven Testing</td>
          <td>Environment Management</td>
      </tr>
      <tr>
          <td>Education &amp; Guidance</td>
          <td>Security Architecture</td>
          <td>Defect Management</td>
          <td>Security Testing</td>
          <td>Operational Management</td>
      </tr>
  </tbody>
</table>
<p>To gain enough insight to perform an assessment in accordance to SAMM i recommend reading their <a href="https://owaspsamm.org/model/">website</a>, but to gain some insight into how it is intended to work lets dive all the way down to the questions asked to perform the assessment. Let&rsquo;s look at <em>Security Architecture</em> in the business area <em>Design</em>. It contains two different streams that are measured, <em>Architecture Design</em> and <em>Technology Management</em>.</p>
<p>For <em>Security Architecture</em> the first maturity level is about <em>&ldquo;Insert[ing] consideration of proactive security guidance into the software design process.&rdquo;</em> In <em>Architecture Design</em> this would mean that the teams are trained in basic security principles and how to use them during the design process. To help with assessing if this is achieved SAMM supplies a question, answer alternatives, and quality criteria. This is also true for every other maturity level, stream, and principle. The question in this example is <em>&ldquo;Do teams use security principles during design?&rdquo;</em> To answer this there are four alternatives:</p>
<ol>
<li>No</li>
<li>Yes, for some applications</li>
<li>Yes, for at least half of the applications</li>
<li>Yes, for most or all of the applications</li>
</ol>
<p>The quality criteria used to help with answering the question in a correct way are:</p>
<blockquote>
<ul>
<li>You have an agreed upon checklist of security principles</li>
<li>You store your checklist in an accessible location</li>
<li>Relevant stakeholders understand security principles</li>
</ul></blockquote>
<p>Overall this model can help an organization measure their maturity in security. For me it is great that it is so detailed and help the organization down to the level of what questions to ask to asses the quality of their implementation. Therefore it can be of great help regardless if the organization is in the beginning of their security journey, or if they have grown more mature.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Apple, Surveillance and CSAM</title>
      <link>https://edbro.net/posts/apple-surveillance-and-csam/</link>
      <pubDate>Sun, 08 Aug 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/apple-surveillance-and-csam/</guid>
      <description>&lt;p&gt;Apple has recently released their plans for on device detection of Child Sexual Abuse Material (CSAM). For me as well as many others this has raised some flags, since it have the potential to greatly impact the privacy of Apple users.&lt;/p&gt;
&lt;p&gt;I will not comment on the overall security of the solution put forward by Apple, just summarize the description on how it works, as well as highlighting my concerns with the solution. Apple intends to roll out the detection in three stages. Firstly images shared through the messages app (AKA iMessage) will be screened for CSAM content. If it is detected (being either sent or received) the user and in applicable cases their parent will be warned about the detection. The second stage includes iCloud photos, where any photo will be matched against known CSAM (on device matching) before being uploaded. If there is a number of matches that meets a threshold Apple will be notified and after manual validation it will be forward to the relevant (American) authorities. The last step is to improve Siri and search, adding better support for reporting CSAM, or where to get support if you, or you think someone else is subject to sexual abuse.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Apple has recently released their plans for on device detection of Child Sexual Abuse Material (CSAM). For me as well as many others this has raised some flags, since it have the potential to greatly impact the privacy of Apple users.</p>
<p>I will not comment on the overall security of the solution put forward by Apple, just summarize the description on how it works, as well as highlighting my concerns with the solution. Apple intends to roll out the detection in three stages. Firstly images shared through the messages app (AKA iMessage) will be screened for CSAM content. If it is detected (being either sent or received) the user and in applicable cases their parent will be warned about the detection. The second stage includes iCloud photos, where any photo will be matched against known CSAM (on device matching) before being uploaded. If there is a number of matches that meets a threshold Apple will be notified and after manual validation it will be forward to the relevant (American) authorities. The last step is to improve Siri and search, adding better support for reporting CSAM, or where to get support if you, or you think someone else is subject to sexual abuse.</p>
<p>But how does the matching work? First of all a set of hashes for known CSAM will be stored on every device. Every photo will then be matched to this hash. To not only match the exact photo a hash algorithm named Private Set Intersection is used. This algorithm matches images that are alike to the same hash, meaning if the image is cropped or a filter is applied the image will still match.</p>
<p><img alt="Diagram of how Apple detects CSAM" loading="lazy" src="/images/2021/Apple-CSAM/20210807-Apple-CSAM-Detection.png"></p>
<p>The result of the match is then saved in a token together with the actual image and uploaded together with the image. This token can however not be read by Apple until a set number of images has been matched by a single user. This is achieved by using Threshold Secret Sharing, which does not allow decryption until a set amount of tokens has been shared. However Apple have to date not shared what the threshold is set to. After the threshold has been reached, Apple will manually review the report and if applicable forward it to the relevant authorities.</p>
<p><img alt="Diagram of how Apple reports CSAM" loading="lazy" src="/images/2021/Apple-CSAM/20210807-Apple-CSAM-Reporting.png"></p>
<p>I will <strong>NOT</strong> comment on the technical security of this solution, but i see the risk that this step will allow governments to use Apple devices for surveillance of their citizens. By introducing a solution that allows them to monitor their users in search for forbidden material, in this case CSAM, they open the door for searching for other materials. Whom is to decide what is illegal and should be reported?</p>
<p>It is already known that Apple have given in to demands by the Chinese government in regards to censorship of devices sold there. An example from the <a href="https://www.nytimes.com/2021/05/17/technology/apple-china-censorship-data.html">NY Times</a> is the emoji for the Taiwanese flag, which is not found on devices sold in China. There are also a separate solution for iCloud in China, where Apple outsource the hosting of the iCloud infrastructure to a Chinese company with ties to the government.</p>
<p>Taking into account how Apple has complied with demands from China it is not unrealistic to assume that they will also comply with demands on what data to match for, and with the technical implementation already in place the roll out for mass surveillance will not be difficult.</p>
<p>Child sexual abuse is a terrible thing, but we still has to look out for the privacy of individuals around the world. As usual the reason stated for surveillance is fighting crime and terror, or national security. This is another big step by multinational companies that infringes the privacy of their users, that can be abused by governments to monitor their citizens. We do not wish to see a state with the same surveillance as East Germany, since it would be much worse thanks to today&rsquo;s technology.</p>
<p>It is widely accepted that the government is  required to get a warrant before searching an individuals home etc. I would argue that in this day and age the devices a person uses contains the same kind of private information as the home, and therefore the privacy requirements should be the same. Why should governments require a search warrant for my home, but not my devices? How would everyone feel if there were required surveillance cameras in each home? They would not send any images if they do not automatically detects a crime, but they are always watching. This could have even better detection for CSA, but it would not be accepted due to privacy concerns. Scanning every photo on device is the same. The privacy implications is enormous! Let&rsquo;s call out what is happening, especially when it is framed with privacy. This is a form of mass surveillance, and that does not ensure the privacy of the individual!</p>
<h2 id="references">References.</h2>
<ul>
<li><a href="https://www.apple.com/child-safety/pdf/Expanded_Protections_for_Children_Technology_Summary.pdf">Apple Expanded Protections for Children</a></li>
<li><a href="https://www.apple.com/child-safety/">Apple on Child Safety</a></li>
</ul>
<p>The images are from <a href="https://www.apple.com/child-safety/pdf/Expanded_Protections_for_Children_Technology_Summary.pdf">Apples Expanded Protections for Children</a> summary.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Cloudflare, a Couple Months Later</title>
      <link>https://edbro.net/posts/cloudflare-a-couple-months-later/</link>
      <pubDate>Sun, 11 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/cloudflare-a-couple-months-later/</guid>
      <description>&lt;p&gt;In a previous &lt;a href=&#34;https://edbro.net/posts/migrating-to-cloudflare/&#34;&gt;post&lt;/a&gt; I shared my experience with moving my page from Github pages to Cloudflare. It is now time to follow up that post and comment on my experiences after approximately a quarter.&lt;/p&gt;
&lt;p&gt;The experience of publishing new posts is about the same as when hosting on Github, you just push an update to the specified branch and then a build is triggered that will be published upon completion. The main difference is that the build process is somewhat slower in Cloudflare than on Github. This means that a build can take about 5 minutes, instead of the previous 1. This is most likely due to the fact that Cloudflare pulls everything and builds locally, instead of using Jekyll remote themes.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In a previous <a href="https://edbro.net/posts/migrating-to-cloudflare/">post</a> I shared my experience with moving my page from Github pages to Cloudflare. It is now time to follow up that post and comment on my experiences after approximately a quarter.</p>
<p>The experience of publishing new posts is about the same as when hosting on Github, you just push an update to the specified branch and then a build is triggered that will be published upon completion. The main difference is that the build process is somewhat slower in Cloudflare than on Github. This means that a build can take about 5 minutes, instead of the previous 1. This is most likely due to the fact that Cloudflare pulls everything and builds locally, instead of using Jekyll remote themes.</p>
<p>When the post is published, there are no major difference for the user, however the statistics for the creator is much deeper. The pure web analytics (provided by JavaScript) could be implemented wherever the site was hosted, but there is more. The web analytics is the most detailed analytics, since it provides what posts were visited, referrers, user agents and more. The Cloudflare proxy analytics on the other hand does not require JavaScript, and can therefore not be blocked. The amount of information provided is not as detailed, but it gives a broader picture of the visitors. This data contains unique visitors and their origin country, but not much more. This could be seen in the web statistics as well, but that tracking is easily blocked.</p>
<p>Even though I have a quite negative stance on tracking, I think that information that is collected in the server anyway can be shown to the content creator without infringing the readers privacy. By being able to track number of readers it&rsquo;s possible to gain insight in the trends depending on the type of content published. For this blog for example I can from the statistics note that the most interesting content is in the divide between technical security and policies. For example <a href="https://edbro.net/posts/an-analysis-of-the-spotify-gdpr-data-export/">Spotify GDPR Analysis</a> is one of the most read articles on the blog, and it was written before I added analysis, and posts are often read the most directly at launch.</p>
<p>Getting back to the topic at hand, the experience of using Cloudflare, it gives the possibility to handle everything at a single location. This includes managing the domain as an registrar, hosting the application, managing TLS certificates and much more. The only thing I&rsquo;ve found that is a bit tricky is that I&rsquo;ve not found a way to register a new domain, only to transfer an existing one. With that said, I&rsquo;ve been very happy with my switch to Cloudflare, it gives me the tools I need for my blog, and just works.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Privacy Policy Review: Apple</title>
      <link>https://edbro.net/posts/privacy-policy-review-apple/</link>
      <pubDate>Wed, 16 Jun 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/privacy-policy-review-apple/</guid>
      <description>&lt;p&gt;When looking at the communications of the major players in the operating system market (for both computers and smartphones) there are one company that repeatedly talks about privacy more than the others. The company I am thinking about is Apple. Their continuous talk about privacy got me curious, how do they handle their users privacy. And when curious it&amp;rsquo;s time to investigate, so I dug into their &lt;a href=&#34;https://www.apple.com/legal/privacy/en-ww/&#34;&gt;Privacy Policy (Updated June 1, 2021)&lt;/a&gt;, and my thoughts resulted in this blogpost.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>When looking at the communications of the major players in the operating system market (for both computers and smartphones) there are one company that repeatedly talks about privacy more than the others. The company I am thinking about is Apple. Their continuous talk about privacy got me curious, how do they handle their users privacy. And when curious it&rsquo;s time to investigate, so I dug into their <a href="https://www.apple.com/legal/privacy/en-ww/">Privacy Policy (Updated June 1, 2021)</a>, and my thoughts resulted in this blogpost.</p>
<p>The first thing that springs to mind is how well Apple documents what information they collect. This is quite a low bar, but it is nice to see an easy to find list of data collected. In addition Apple clearly specifies that they do not sell any data from its users, something that should be greatly appreciated.</p>
<blockquote>
<p>Apple does not sell your data including as “sale” is defined in Nevada and California.</p></blockquote>
<p>The following sentence in the privacy policy caught my attention:</p>
<blockquote>
<p>Apple does not use algorithms or profiling to make any decision that would significantly affect you without the opportunity for human review.
At first glance this seems like they do not use algorithms on your data, but upon further review this is not true. Instead it just specifies that there is an opportunity for human review. As I understand it this means that if you are not happy with the outcome of this algorithm you can request a review.</p></blockquote>
<p>Overall the  privacy policy is quite good, it shows the overall intent from apple when it comes to privacy. If they live up to their promises is hard to validate, but the policy gives me hope that major companies can take an interest in privacy and not sell the data they collect.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Privacy in Browsers</title>
      <link>https://edbro.net/posts/privacy-in-browsers/</link>
      <pubDate>Sat, 29 May 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/privacy-in-browsers/</guid>
      <description>&lt;p&gt;This investigation should not be taken as a full review of the browsers, but wishes to highlight the differences that different browsers have in how they handle user privacy. The test aims to give an overview, not describe in detail what each browser does or does not do.&lt;/p&gt;
&lt;h2 id=&#34;methodology&#34;&gt;Methodology&lt;/h2&gt;
&lt;p&gt;To perform this test I created a new virtual machine based on Windows &lt;a href=&#34;https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/&#34;&gt;MSEdge win10&lt;/a&gt; VM. In this VM I installed the browsers intended to be tested, using the default configuration. After that I configured BurpSuite as a proxy for the VM, so that all traffic is routed through it. This way it will document all the traffic that the browser in the VM is sending.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This investigation should not be taken as a full review of the browsers, but wishes to highlight the differences that different browsers have in how they handle user privacy. The test aims to give an overview, not describe in detail what each browser does or does not do.</p>
<h2 id="methodology">Methodology</h2>
<p>To perform this test I created a new virtual machine based on Windows <a href="https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/">MSEdge win10</a> VM. In this VM I installed the browsers intended to be tested, using the default configuration. After that I configured BurpSuite as a proxy for the VM, so that all traffic is routed through it. This way it will document all the traffic that the browser in the VM is sending.</p>
<p>There are three steps of testing for each browser. First just opening the browser, secondly entering the address example.com and lastly navigating by pressing learn more.</p>
<p>No investigations will be performed in against the in private browsing for the browsers. This is left for further investigation further down the line.</p>
<h2 id="microsoft-edge">Microsoft Edge</h2>
<p>When opening edge you are greeted by the bing feed, and that shows when looking at the traffic as well.</p>
<p><img loading="lazy" src="/images/2021/privacy-in-browsers/Edge-Startpage.png"></p>
<p>After just starting the browser there are traffic to 9 different domains:</p>
<ul>
<li><strong>assets.msn.com</strong> contains data in a JSON format that tells the browser what to show on the homepage. This includes news, where images are stored, weather and more.</li>
<li><strong>browser.events.data.msn.com</strong> collects data from the browser. It seems to be analytics for the homepage, containing information about what is shown. This URL will be interesting to investigate further when navigating.</li>
<li><strong>config.edge.skype.com</strong> sends some identifiers to the server, and in return get a set of settings.</li>
<li><strong>edge.microsoft.com</strong> seems to be regarding updates for the browser. It asks about blocked extensions, updates for the browser etc.</li>
<li><strong>img-s-msn-com.akamaized.net</strong> Contains the images described on assets.msn.com.</li>
<li><strong>nav.smartscreen.microsoft.com</strong> sends data about the client and the device. This is another one to keep an eye on.</li>
<li><strong>ntp.msn.com</strong> contains the structure of the homepage, this includes the HTML and the scripts that initiate the loading of the homepage.</li>
<li><strong><a href="https://www.bing.com">www.bing.com</a></strong> the search engine, the traffic contains information about search history and sign in status.</li>
</ul>
<p>Moving on to investigating what happens when navigating to a page will be interesting. and it begins as expected. Since the address bar doubles as a search box, its expected for each character entered to result in a new request to bing. This means that while entering example.com, Edge will also send a get request for every character. The last one sent to bing is: <a href="https://www.bing.com/qbox?query=example.com&amp;language=en-US&amp;pt=EdgBox&amp;cvid=2c574712e0694ac3b9fce0aa5af8bb1f&amp;ig=0a41dcb2e4f247abbb729fc313bf5e7f&amp;oit=3&amp;cp=11&amp;pgcl=1">https://www.bing.com/qbox?query=example.com&amp;language=en-US&amp;pt=EdgBox&amp;cvid=2c574712e0694ac3b9fce0aa5af8bb1f&amp;ig=0a41dcb2e4f247abbb729fc313bf5e7f&amp;oit=3&amp;cp=11&amp;pgcl=1</a>, which contains the full URL. Following this there are some more statistics, however it is not more noteworthy than previously described.</p>
<p>Next one is a real problem however. The full URL is sent in a post request to <a href="https://nav.smartscreen.microsoft.com/api/browser/edge/navigate/2/sync">https://nav.smartscreen.microsoft.com/api/browser/edge/navigate/2/sync</a>. The dataset shown below is highly problematic, it should not send data about the users browsing habit to Microsoft. In addition to the URI, the IP field is highly worrying. If this is filled with internal IPs, it may leak information about the internal workings of networks. Note that this information is sent both when entering the URI manually, as well as when navigating the web by pressing links, and it contains both the path and URI parameters.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span><span class="lnt">27
</span><span class="lnt">28
</span><span class="lnt">29
</span><span class="lnt">30
</span><span class="lnt">31
</span><span class="lnt">32
</span><span class="lnt">33
</span><span class="lnt">34
</span><span class="lnt">35
</span><span class="lnt">36
</span><span class="lnt">37
</span><span class="lnt">38
</span><span class="lnt">39
</span><span class="lnt">40
</span><span class="lnt">41
</span><span class="lnt">42
</span><span class="lnt">43
</span><span class="lnt">44
</span><span class="lnt">45
</span><span class="lnt">46
</span><span class="lnt">47
</span><span class="lnt">48
</span><span class="lnt">49
</span><span class="lnt">50
</span><span class="lnt">51
</span><span class="lnt">52
</span><span class="lnt">53
</span><span class="lnt">54
</span><span class="lnt">55
</span><span class="lnt">56
</span><span class="lnt">57
</span><span class="lnt">58
</span><span class="lnt">59
</span><span class="lnt">60
</span><span class="lnt">61
</span><span class="lnt">62
</span><span class="lnt">63
</span><span class="lnt">64
</span><span class="lnt">65
</span><span class="lnt">66
</span><span class="lnt">67
</span><span class="lnt">68
</span><span class="lnt">69
</span><span class="lnt">70
</span><span class="lnt">71
</span><span class="lnt">72
</span><span class="lnt">73
</span><span class="lnt">74
</span><span class="lnt">75
</span><span class="lnt">76
</span><span class="lnt">77
</span><span class="lnt">78
</span><span class="lnt">79
</span><span class="lnt">80
</span><span class="lnt">81
</span><span class="lnt">82
</span><span class="lnt">83
</span><span class="lnt">84
</span><span class="lnt">85
</span><span class="lnt">86
</span><span class="lnt">87
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;config&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;device&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;appControl&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;level&#34;</span><span class="p">:</span> <span class="s2">&#34;anywhere&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="p">},</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;appReputation&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;enforcedByPolicy&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;level&#34;</span><span class="p">:</span> <span class="s2">&#34;warn&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="p">},</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;pua&#34;</span><span class="p">:</span> <span class="kc">null</span>
</span></span><span class="line"><span class="cl">        <span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;user&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;uriReputation&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;enforcedByPolicy&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;level&#34;</span><span class="p">:</span> <span class="s2">&#34;warn&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">},</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;correlationId&#34;</span><span class="p">:</span> <span class="s2">&#34;89CFA157-04D4-412A-98BB-709B71C615D3&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;destination&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;ip&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;uri&#34;</span><span class="p">:</span> <span class="s2">&#34;[http://example.com/](http://example.com/)&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">},</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;forceServiceDetermination&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;identity&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;caller&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;locale&#34;</span><span class="p">:</span> <span class="s2">&#34;en-US&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;name&#34;</span><span class="p">:</span> <span class="s2">&#34;anaheim&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;process&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;version&#34;</span><span class="p">:</span> <span class="s2">&#34;90.0.818.66 (Official build) &#34;</span>
</span></span><span class="line"><span class="cl">        <span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;client&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;data&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;customSettings&#34;</span><span class="p">:</span> <span class="s2">&#34;F95BA787499AB4FA9EFFF472CE383A14&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;customSynchronousLookupUris&#34;</span><span class="p">:</span> <span class="s2">&#34;0&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;edgeSettings&#34;</span><span class="p">:</span> <span class="s2">&#34;2.0-2f9188b68640dbf72295f9083a21d674a314721ef06f82db281cbcb052ff8ec1&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;synchronousLookupUris&#34;</span><span class="p">:</span> <span class="s2">&#34;637573832200302234&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;topTraffic&#34;</span><span class="p">:</span> <span class="s2">&#34;637558215533797649&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="p">},</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;version&#34;</span><span class="p">:</span> <span class="s2">&#34;281479409434625&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;device&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;architecture&#34;</span><span class="p">:</span> <span class="mi">9</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;browser&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="nt">&#34;internetExplorer&#34;</span><span class="p">:</span> <span class="s2">&#34;9.11.17763.0&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="p">},</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;cloudSku&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;customId&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;enterprise&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;family&#34;</span><span class="p">:</span> <span class="mi">3</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;id&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;locale&#34;</span><span class="p">:</span> <span class="s2">&#34;en-US&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;netJoinStatus&#34;</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;onlineIdTicket&#34;</span><span class="p">:</span> <span class="s2">&#34;t=GwAWAd9tBAAUCqvYdtHJRIwInP+r5YPm2nbkkcAOZgAAEJ/wJWzYvXJk2hg0pJqfC2bgAEIj8X67eJZgKm+QThVvKp4Pf8o2ZzOaAXSFVEgq9EalUkWdryzr8v31XssotVR3TTY4qVre++0pt/cdfd0BFmp51zVLf348JdKxQhYIowBw3CA44g5aEBxqprJm0rya6ydnDJaGbuxnumU8USS8KjKgyarnmEdamOuwQArEh2IdE0dBC/qghRR9YhCoBcoJWcUaQViqx4ZyWq+DyIEQuZRzf/T2UqHWvd5zzDPpUBcnqXV8hAfRISO36nnQMqYdFgx26hzL4T/Ye7M+LLbnfkpr7qblGQBMZOyemn3NJBMbHQE=&amp;p=&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;osVersion&#34;</span><span class="p">:</span> <span class="s2">&#34;10.0.17763.1935.rs5_release&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;user&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;locale&#34;</span><span class="p">:</span> <span class="s2">&#34;en-US&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">},</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;referrer&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;serverContext&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;signals&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;synchronous&#34;</span><span class="p">:</span> <span class="kc">true</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;systemSettings&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;battery&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="nt">&#34;network&#34;</span><span class="p">:</span> <span class="kc">null</span>
</span></span><span class="line"><span class="cl">    <span class="p">},</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;type&#34;</span><span class="p">:</span> <span class="s2">&#34;top&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;userAgent&#34;</span><span class="p">:</span> <span class="s2">&#34;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.66&#34;</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>After this there are a couple of new URIs that has not been seen previously. These are:</p>
<ul>
<li><strong>x.urs.microsoft.com</strong> seeming like further statistics.</li>
<li><strong>smartscreen-prod.microsoft.com</strong> sending a JSON via get request, returning binary data. It seems to be a certificate of some kind, but this investigation has not validated it.</li>
</ul>
<p>In total Edge uses 10 different domains, and send quite a lot of privacy infringing information to Microsoft using their smartscreen function.</p>
<h2 id="google-chrome">Google Chrome</h2>
<p>In Chrome the start page is a version of the classic Google search box, and a list of previously visited webpages. As with Edge, Chrome sends requests to a set of domains, but for Chrome it uses 9, 6 of which generates a response.</p>
<ul>
<li><strong>accounts.google.com</strong> is used to list the accounts signed into the browser. Since the test was performed without signing in, this might contain more information if signed in.</li>
<li><strong>clientservices.googleapis.com</strong> sends information about the chrome version and OS, and gets binary contents in the response.</li>
<li><strong><a href="https://www.google.com">www.google.com</a></strong> fetches information to be shown in the new tab.</li>
<li><strong>update.googleapis.com</strong> is used to check if there are updates available for Chrome.</li>
<li><strong>clients2.googleusercontent.com</strong> is used to download updates in a binary format. The URL was given in the response from <em>update.googleapis.com</em>.</li>
<li><strong>Random strings</strong> Three requests are made targeting URLS of randomised 12 character strings. There are no response to these requests. Further research is needed to gain insights into their use.</li>
<li><strong>ssl.gstatic.com</strong> fetches a binary file in regards to safebrowsing. This does (according to Google) allow the browser to block unwanted and malicious pages.</li>
</ul>
<p>While then entering the URL for navigation, the browser tries to search google. This is once again due to the use of a combined search and address box. Once the navigation is completed however, there are only one more unexpected request. This request was to <em>translate.googleapis.com</em>, fetching what languages are available for translation. It did not however contain information about the webpage visited.</p>
<p>When navigating away by clicking a link Chrome did not send any further requests except the ones required by the webpage. This is a good result, especially when comparing it to Edge and its abysmal privacy concerns.</p>
<h2 id="mozilla-firefox">Mozilla Firefox</h2>
<p>When starting Firefox you are greeted by a start page that very much resembles the one of Chrome. It consists of a google search box and previously visited webpages. At this point there are requests sent to 5 different destinations:</p>
<ul>
<li><strong>detectportal.firefox.com</strong> seems to be used to test the internet uplink, it is sent three times. Each time with different parameters and the same response, <em>Success</em>.</li>
<li><strong>push.services.mozilla.com</strong> initiates a websocket connection, where the browser subscribes to changes from Mozilla through push notifications.</li>
<li><strong>snippets.cdn.mozilla.net</strong> sends information about the current environment for the browser (Windows), and gets an empty response with the HTTP Status code <em>303 See Other</em>. However the location (on the same host) was never requested by the browser.</li>
<li><strong>incoming.telemetry.mozilla.org</strong> is sent telemetry in binary form. Mozilla describes what is sent at <a href="https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/">https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/</a>, but further investigations are needed to validate the claims.</li>
<li><strong>aus5.mozilla.org</strong> is used to check for available updates.</li>
</ul>
<p>When navigating manually to <a href="https://example.com">https://example.com</a> Firefox performs searches against Google. However it does also send more binary telemetry. This continues when further navigating by clicking URLs on the webpage.
Firefox is a somewhat chatty browser, that sends traffic in-between usage. This includes the binary telemetry that has not been investigated in this report.</p>
<h2 id="brave">Brave</h2>
<p>Brave has the unique selling point to be a privacy focused browser. It has an inbuilt adblocker, and on the start page it boasts with how much time has been saved by the browser since it was installed.</p>
<p><img alt="The brave startpage" loading="lazy" src="/images/2021/privacy-in-browsers/BraveStartpage.png">
During the install process it asks for what search engine to use, but for this test the standard (google) was used.
When opening the browser there are a couple of requests, as usual. However there are only 4 that resolves, and the thre randomised ones from chromium.</p>
<ul>
<li><strong>laptop-updates.brave.com</strong> seems to fetch updates the list of ads that adhere to Braves standards. This could however not be validated.</li>
<li><strong>variations.brave.com</strong> checks if there are any updates for Brave.</li>
<li><strong>go-updater.brave.com</strong> checks for updates for extensions (or extension like components) in Brave.</li>
<li><strong>componentupdater.brave.com</strong> checks for updates in components for brave.
-<strong>Random strings</strong> Three requests are made targeting URLS of randomised 12 character strings. There are no response to these requests. Further research is needed to gain insights into their use.</li>
</ul>
<p>When navigating the web as described by the methodology no further requests was found. However, after the test was finished another request was found, safebrowsing.brave.com, which seems to have the same function as safebrowsing in Chrome. There is one difference though, it uses a dummy token, limiting some of the data sent to the server.</p>
<h2 id="summary">Summary</h2>
<p>In conclusion this quick test showed that there are one browser that are worse than all the others, edge. The behaviour of Microsoft that collects all visited URLs is abysmal! As long as Edge is not used, this limited investigation has shown very limited differences between the browsers.</p>
<table>
  <thead>
      <tr>
          <th>Browser</th>
          <th>Domains used</th>
          <th>Data Sent</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Microsoft Edge</td>
          <td>10</td>
          <td>IP addresses, Full URIs visited, Search data</td>
      </tr>
      <tr>
          <td>Google Chrome</td>
          <td>10</td>
          <td>Search</td>
      </tr>
      <tr>
          <td>Mozilla Firefox</td>
          <td>6</td>
          <td>Search, Binary Telemetry</td>
      </tr>
      <tr>
          <td>Brave</td>
          <td>7</td>
          <td>Search</td>
      </tr>
  </tbody>
</table>
<p>This investigation should not be seen as a complete deep dive into the browsers, but rather a quick overview. To get the complete picture there are several further steps that are required.</p>
<ol>
<li>Investigating traffic during prolonged use</li>
<li>Further investigating unclear traffic</li>
<li>Investigating in private browsing</li>
<li>Investigate the privacy settings of each browser</li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Security for Any Administrator Team</title>
      <link>https://edbro.net/posts/security-for-any-administrator-team/</link>
      <pubDate>Sat, 08 May 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/security-for-any-administrator-team/</guid>
      <description>&lt;p&gt;Previously I&amp;rsquo;ve written a post about &lt;a href=&#34;https://edbro.net/posts/security-for-any-development-team/&#34;&gt;security for development teams&lt;/a&gt;, and now it&amp;rsquo;s time for the continuation. Just as for developer there are great benefits in performing security tests for administrators. However, the methodology when testing the infrastructure is not the same as when testing an application.&lt;/p&gt;
&lt;p&gt;In this post I&amp;rsquo;m going to introduce categories of testing for administrators in much the same way as I did for developers, allowing any team to begin thinking about security and performing basic security testing. The categories proposed can also be adapted to be used as requirements, more so than the ones used for developers. This is since they are easier to apply regardless of what solution is tested.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Previously I&rsquo;ve written a post about <a href="https://edbro.net/posts/security-for-any-development-team/">security for development teams</a>, and now it&rsquo;s time for the continuation. Just as for developer there are great benefits in performing security tests for administrators. However, the methodology when testing the infrastructure is not the same as when testing an application.</p>
<p>In this post I&rsquo;m going to introduce categories of testing for administrators in much the same way as I did for developers, allowing any team to begin thinking about security and performing basic security testing. The categories proposed can also be adapted to be used as requirements, more so than the ones used for developers. This is since they are easier to apply regardless of what solution is tested.</p>
<h2 id="exposure-vulnerabilities">Exposure Vulnerabilities</h2>
<p>The first category of vulnerabilities are related to exposure. To minimise the risk, it is important to not expose functionality that is not required. This could for example be blocking access to the database so that only the application can connect to it. There is no reason that it should reachable by everyone.</p>
<p>By limiting the exposure the impact of other vulnerabilities are limited. The possibility to attack a vulnerable administrative interface gets limited if only users on the administrative network are allowed to connect to it. However, it is important to remember that separation is not the silver bullet that protects against everything, but rather one layer of the defence.</p>
<h2 id="application-configuration-vulnerabilities">Application Configuration Vulnerabilities</h2>
<p>All solutions have a function that needs to be exposed to it&rsquo;s users. This functionality cannot be blocked and therefore has to be protected by other means. Here most providers of applications do (or should) provide best practices for how to configure their application in a secure manner. Exactly how this should be configured are dependant on the application used, but the main goal is to minimise the risk of the application being exploited.</p>
<p>There are multiple examples of configuration that can be configured in applications. Some examples are:</p>
<ol>
<li>Enabling security functions</li>
<li>Disabling unused functionality</li>
<li>Change default credentials</li>
</ol>
<p>A common example of vulnerable configuration on the web is regarding encryption and HTTPS. To be secure it is important to both enable TLS by allowing connecting in HTTPS, and disable vulnerable versions of TLS, such as TLSv1.0. To know exactly what is secure and what is not is difficult, and therefore the best practices provides guidance.</p>
<h2 id="vulnerabilities-in-outdated-components">Vulnerabilities in Outdated Components</h2>
<p>Last, but not least it is important to keep the environment up to date by applying the patches provided by the supplier. Patching is not only applicable for the main application, but for all software running on the system. To once again use the web as an example an up to date webserver might be exploited by using an outdated version of openssl (that provides TLS).</p>
<p>To keep a system up to date might be more work than expected since you have to keep up to date with what patches are provided, verify their functionality and then update. To help with the keeping up to date part many suppliers provide newsletters and advisories that informs their subscribers when a new update is available.</p>
<h2 id="summary">Summary</h2>
<p>When it comes to security for administrators it&rsquo;s important to have a defence in depth strategy. It is not enough to protect against any single one of these categories of vulnerabilities. To protect efficiently all layers of security needs to be applied.</p>
<p>This methodology does not protect against exploits in the application, since each application might be vulnerable. It assumes that the suppliers have their own way of ensuring that their product is secure. If the application is vulnerable np configuration will protect, and testing for these categories of vulnerabilities will not help. Instead it is recommended to read the post <a href="https://edbro.net/posts/security-for-any-development-team/">security for development teams</a>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Migrating to Cloudflare</title>
      <link>https://edbro.net/posts/migrating-to-cloudflare/</link>
      <pubDate>Sat, 17 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/migrating-to-cloudflare/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been looking around on how to get some statistics from my blog, especially regarding the number of visitors. Sadly the current solution (GitHub pages) does not seem to natively support this kind of statistics without adding third party tracking. After looking around for different solutions Cloudflare caught my attention. I know that among others, &lt;a href=&#34;https://www.troyhunt.com/&#34;&gt;Troy Hunt&lt;/a&gt; writes about and uses Cloudflare, so I decided to give it a try.&lt;/p&gt;
&lt;p&gt;Migrating from GitHub pages to Cloudflare pages was as easy as configuring what GitHub repo to use in Cloudflare, picking Jekyll and then it just worked. Right after the page was built you see some basic statistics, such as the amount of request grouped by country. Below the first hours of traffic is shown in a map, as presented by Cloudflare.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve been looking around on how to get some statistics from my blog, especially regarding the number of visitors. Sadly the current solution (GitHub pages) does not seem to natively support this kind of statistics without adding third party tracking. After looking around for different solutions Cloudflare caught my attention. I know that among others, <a href="https://www.troyhunt.com/">Troy Hunt</a> writes about and uses Cloudflare, so I decided to give it a try.</p>
<p>Migrating from GitHub pages to Cloudflare pages was as easy as configuring what GitHub repo to use in Cloudflare, picking Jekyll and then it just worked. Right after the page was built you see some basic statistics, such as the amount of request grouped by country. Below the first hours of traffic is shown in a map, as presented by Cloudflare.</p>
<p><img alt="Cloudflare map" loading="lazy" src="/images/2021/migrating-to-cloudflare/Cloudflare-map.png"></p>
<p>In addition to providing basic statistics, using Cloudflare gives a lot of additional benefits. This includes the use of their Content Delivery Network, protection from Denial of Service, and easy HTTPS. I have not dug deep into which is best in these regards, but i find it difficult to believe that I have made a significant downgrade.</p>
<p>So in conclusion to gain some basic statistics of the usage of my blog, I&rsquo;ve migrated it to Cloudflare. The solution will not track any personal data, only basic statistics to gain some insight in how many readers are  using/enjoying my blog.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Security for Any Development Team</title>
      <link>https://edbro.net/posts/security-for-any-development-team/</link>
      <pubDate>Fri, 05 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/security-for-any-development-team/</guid>
      <description>&lt;p&gt;There are very few, if any, development teams that introduces vulnerabilities into their software out of malicious intent. Instead it is mistakes that are introduced due to lack of time, awareness, or something alike. There are lots of materials out there that are either super detailed for a specific technology stack, or on such a high level it is hard to apply in the real world.&lt;/p&gt;
&lt;p&gt;With this post I will try to do the impossible, to describe how you work with security in a practical manner, regardless of what technology you use. I will highlight three categories of vulnerabilities, and describe them in a technology independent way. My hope with this is to allow any development team to have a think about security, and apply them to their specific technologies.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>There are very few, if any, development teams that introduces vulnerabilities into their software out of malicious intent. Instead it is mistakes that are introduced due to lack of time, awareness, or something alike. There are lots of materials out there that are either super detailed for a specific technology stack, or on such a high level it is hard to apply in the real world.</p>
<p>With this post I will try to do the impossible, to describe how you work with security in a practical manner, regardless of what technology you use. I will highlight three categories of vulnerabilities, and describe them in a technology independent way. My hope with this is to allow any development team to have a think about security, and apply them to their specific technologies.</p>
<p>Throughout the article I will use the word component to describe a piece of software. This can be as small as a function, or as big as a financial system. The main thing is that the software takes some kind of input, and based on that input performs some actions which leads to a result. This could be sending a request to a web API which returns user information, or pushing a button resulting in raising the target temperature of a room. However small or big the component is, the concepts explained will be applicable. This input is used both for legitimate usage, and for potential attacks, and therefore is it important to understand the risks.</p>
<p>I will in this post propose that there are three different kinds of vulnerabilities that can be found in any type of software. This will allow us to have a common ground for discussing security between different domains, and adapt it to where you have your expertise.</p>
<h2 id="context-dependent-vulnerabilities">Context Dependent Vulnerabilities</h2>
<p>Lots of technical vulnerabilities is due to a change of context from where data is inserted into a component, and where it is used. If the context of the data is changed, but the data is not adapted correctly the risk for a possible exploit increases. The goal of an attacker when attacking the contexts is to break out off the assigned field of the data and in doing so gaining access to data or functionality that it is not intended to have.</p>
<p>One of the most well known example of context dependent vulnerabilities are an SQL injection. In an SQL injection the attacker breaks out of the data context of the database query to create one specified by the attacker. In doing so the attacker can fetch any data in the database, or even modify the data.</p>
<p>To test or mitigate these issues the development team should think about the context of the input and output data. The data input might need to be decoded before logic is performed on it. To decode the input correctly the development team needs to understand the input context, and any encodings used in the context. Next up the same considerations needs to made on the output context. If data is output into an HTML context, the relevant characters needs to be HTML encoded.</p>
<h2 id="business-logic-vulnerabilities">Business Logic Vulnerabilities</h2>
<p>The second kind of vulnerabilities are vulnerabilities that directly affect the business logic. These are often the easiest to understand and explain, since they directly has a business impact. A simple example would be in a web shop. The intended function is for the price to pay equals the sum of all the products. But what would happened if you tried to order a negative number of products? The reasoning does not make sense in a business perspective, but if there are no protections the web shop will give a negative total.</p>
<p>A common way to work with business logic vulnerabilities is through abuser-stories or abuse-cases. These are tightly related to their respective user-stories or use-cases, but helps to show what an attacker want. In doing so it highlights the risks, and adds them to the requirements (how to work with abuse-cases and abuser-stories will however have to be another post in the future). This way they are both tracked and tested along the functional requirements, removing some of the fog around security.</p>
<h2 id="abusing-the-technology-stack">Abusing the Technology stack</h2>
<p>The last kind of security is the hardest to describe broadly, since it is connected to the technology stack used in the project. Any technology has its own risks and vulnerabilities, therefore you need to read up on what is applicable in your area. This could be vulnerabilities specific to your programming language (buffer overflow in c), to the tools you are using (XML External Entity attack when using XML or clickjacking on the web), or specific to your dependencies (known vulnerabilities in the used versions). When becoming an expert on the technology stack I would argue that it is required to also have an insight into the vulnerabilities that are specific to that stack. However this cannot be done once, just as the technology evolve so does the potential attacks. You have to keep up to date.</p>
<p>Even though this requires actively seeking some knowledge in the area, it is an important expertise to have in the teams. A third party tester does rarely get the same insight into the technologies used as the team has, and therefore they might miss some important finding. By combining the tester outside the team with the one inside, the risk of vulnerabilities being missed are minimised.</p>
<h2 id="summary">Summary</h2>
<p>The work of security professionals are often seen as obscure and mystic. They come in and points to errors, just to leave and not return until the next release. However their goal align with the goal of the team, the delivery of high quality software. By breaking down security vulnerabilities into three groups I aim to bridge some of that gap between security professionals and the teams. Anything the team can find and fix is a plus. By thinking of the three areas of security vulnerabilities (Context Dependent, Business Logic, and Abusing the Technology stack) I hope that development teams gain the introduction needed to begin working with security. It is no magic, it is just another part of the toolbox that all development teams need to produce great software.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Hacking is not a crime, or is it?</title>
      <link>https://edbro.net/posts/hacking-is-not-a-crime-or-is-it/</link>
      <pubDate>Thu, 11 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/hacking-is-not-a-crime-or-is-it/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve lately seen multiple bug bounty hunters on twitter (and other platforms) proudly exclaiming that hacking is not a crime. They are not wrong, but I think the answer needs to be a bit more nuanced. So here is my take on hacking.&lt;/p&gt;
&lt;p&gt;Hacking is not inherently a crime, but neither is it automatically never criminal. I would compare it with lighting a fire. There are instances where it is helpful and legal (eg. lighting a campfire), but there are at least as many ways of doing it illegally (eg. burning down a building). The act of lighting a fire can be good or bad, legal or illegal, ethical or unethical. Everything depends on how you do it.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve lately seen multiple bug bounty hunters on twitter (and other platforms) proudly exclaiming that hacking is not a crime. They are not wrong, but I think the answer needs to be a bit more nuanced. So here is my take on hacking.</p>
<p>Hacking is not inherently a crime, but neither is it automatically never criminal. I would compare it with lighting a fire. There are instances where it is helpful and legal (eg. lighting a campfire), but there are at least as many ways of doing it illegally (eg. burning down a building). The act of lighting a fire can be good or bad, legal or illegal, ethical or unethical. Everything depends on how you do it.</p>
<p>The same can be said about hacking. It can be used  for good or for bad, and the risk of the current spread of &ldquo;Hacking is not a crime&rdquo; is that it draws a line and divides. The reality is not black or white, and we as security professionals have to help the ones not as familiar with the area to understand the difference.</p>
<p>With this said, I would love to change the mantra, from &ldquo;Hacking is not a crime&rdquo; to &ldquo;Hacking can be used for good&rdquo;. This way we are enforcing the positivity, while not hiding the dark side. From my point of view, the best way to gain the trust and change peoples view is to not over simplify. We need to explain, and allow people to come to their own conclusions. We just need to give them the information they need to make an informed decision, understanding that there is a grey in-between the black and the white.</p>
]]></content:encoded>
    </item>
    <item>
      <title>An Analysis of the Spotify GDPR Data Export</title>
      <link>https://edbro.net/posts/an-analysis-of-the-spotify-gdpr-data-export/</link>
      <pubDate>Sun, 07 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://edbro.net/posts/an-analysis-of-the-spotify-gdpr-data-export/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve gotten a bit curious about what data different companies are collecting about me. This have led to a couple of GDPR requests to companies to provide the data so I can analyse it. In this post I will share my thoughts about the content of the report I got from &lt;a href=&#34;https://www.spotify.com/&#34;&gt;Spotify&lt;/a&gt;, and the process of fetching the data.&lt;/p&gt;
&lt;h2 id=&#34;the-download-process&#34;&gt;The Download Process&lt;/h2&gt;
&lt;p&gt;The process to get access to your data is quite straight forward. There are clear descriptions on how to download your data under &lt;a href=&#34;https://www.spotify.com/account/privacy/&#34;&gt;privacy settings&lt;/a&gt;, where you can request a download. The collection process takes a while and an email is sent when your data is ready to be downloaded. In the email there are a link that allows you to download a zip archive containing your information.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve gotten a bit curious about what data different companies are collecting about me. This have led to a couple of GDPR requests to companies to provide the data so I can analyse it. In this post I will share my thoughts about the content of the report I got from <a href="https://www.spotify.com/">Spotify</a>, and the process of fetching the data.</p>
<h2 id="the-download-process">The Download Process</h2>
<p>The process to get access to your data is quite straight forward. There are clear descriptions on how to download your data under <a href="https://www.spotify.com/account/privacy/">privacy settings</a>, where you can request a download. The collection process takes a while and an email is sent when your data is ready to be downloaded. In the email there are a link that allows you to download a zip archive containing your information.</p>
<h2 id="analysis-of-the-data">Analysis of the Data</h2>
<p>After extracting the data we find the following files:</p>
<pre tabindex="0"><code>$ ls -lah
total 1.4M
drwxr-xr-x 1 edbro 197121    0 Jan  6 11:06 .
drwxr-xr-x 1 edbro 197121    0 Jan  8 11:45 ..
-rw-r--r-- 1 edbro 197121   62 Jan  6 11:06 DuoNewFamily.json
-rw-r--r-- 1 edbro 197121  222 Jan  6 11:06 Follow.json
-rw-r--r-- 1 edbro 197121 1.1K Jan  6 11:06 Inferences.json
-rw-r--r-- 1 edbro 197121  105 Jan  6 11:06 Payments.json
-rw-r--r-- 1 edbro 197121 170K Jan  6 11:06 Playlist1.json
-rw-r--r-- 1 edbro 197121 183K Jan  6 11:06 Read_Me_First.pdf
-rw-r--r-- 1 edbro 197121  12K Jan  6 11:06 SearchQueries.json
-rw-r--r-- 1 edbro 197121 952K Jan  6 11:06 StreamingHistory0.json
-rw-r--r-- 1 edbro 197121  308 Jan  6 11:06 Userdata.json
-rw-r--r-- 1 edbro 197121 7.6K Jan  6 11:06 YourLibrary.json
</code></pre><p>The <em>read me first</em> PDF file contains some information about what&rsquo;s not included and how to get access to it. For example it links to <a href="https://support.spotify.com/uk/article/gdpr-article-15-information/">https://support.spotify.com/uk/article/gdpr-article-15-information/</a> about the legal grounds for the processing of data. It also links to an article about how to understand the information in these files. It explains what the files contain on a high level (<a href="https://support.spotify.com/uk/article/understanding-my-data/">https://support.spotify.com/uk/article/understanding-my-data/</a>). If you have some experience I feel like you would get the same from reading the json files, but it is nice that they include it. After reading the PDF, let&rsquo;s dig into the actual user data.</p>
<p>The first analysis is to get an overview of the size of the files and if they are interesting. This gave some basic information about the files, as listed below:</p>
<ul>
<li><strong>DuoNewFamily.json</strong> Only contains the address of the family account (yes I use Spotify duo).</li>
<li><strong>Follow.json</strong> Small file containing information about my followers as well as users and artists i follow. Note however that only the artists I follow are listed, the other parts are just in numbers.</li>
<li><strong>Inferences.json</strong> Contains a list of categories which Spotify have classified me into. Gives an insight into what Spotify knows about me, but does not need any further investigation. Example categories are: &ldquo;1P_Custom_Samsung_Galaxy_S10_Users&rdquo; and &ldquo;1P_Podcast Listeners_True Crime&rdquo;.</li>
<li><strong>Payments.json</strong> Contains information about when my account was created, and how I pay for the service.</li>
<li><strong>Playlist1.json</strong> Fully lists the playlists I&rsquo;ve created. The file is large and will be inspected more deeply.</li>
<li><strong>SearchQueries.json</strong> Lists the searches performed, and on what device it was performed, as well as the timestamp for the search.</li>
<li><strong>StreamingHistory0.json</strong> Contains all the songs listened to, for how long, and when.</li>
<li><strong>Userdata.json</strong> About what you expect, information about your user. Nothing more and nothing less.</li>
<li><strong>YourLibrary.json</strong> A big file containing things you like, everything from podcasts or artists to songs. In addition it shows songs you&rsquo;ve disliked and that are hidden from your account.</li>
</ul>
<p>Let&rsquo;s dig a bit deeper into some of these files and look what they are hiding.</p>
<h3 id="playlist1json">Playlist1.json</h3>
<p>Each playlist are listed with the following information:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl">    <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="nt">&#34;name&#34;</span><span class="p">:</span> <span class="s2">&#34;TEST&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">      <span class="nt">&#34;lastModifiedDate&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-10-20&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">      <span class="nt">&#34;items&#34;</span><span class="p">:</span> <span class="p">[</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;track&#34;</span><span class="p">:</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;trackName&#34;</span><span class="p">:</span> <span class="s2">&#34;Party In The U.S.A.&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;artistName&#34;</span><span class="p">:</span> <span class="s2">&#34;Miley Cyrus&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;albumName&#34;</span><span class="p">:</span> <span class="s2">&#34;The Time Of Our Lives&#34;</span>
</span></span><span class="line"><span class="cl">          <span class="p">},</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;episode&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;localTrack&#34;</span><span class="p">:</span> <span class="kc">null</span>
</span></span><span class="line"><span class="cl">        <span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;track&#34;</span><span class="p">:</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;trackName&#34;</span><span class="p">:</span> <span class="s2">&#34;Year of the Young&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;artistName&#34;</span><span class="p">:</span> <span class="s2">&#34;Smith &amp; Thell&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="nt">&#34;albumName&#34;</span><span class="p">:</span> <span class="s2">&#34;Year of the Young&#34;</span>
</span></span><span class="line"><span class="cl">          <span class="p">},</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;episode&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">          <span class="nt">&#34;localTrack&#34;</span><span class="p">:</span> <span class="kc">null</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">      <span class="p">],</span>
</span></span><span class="line"><span class="cl">      <span class="nt">&#34;description&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">      <span class="nt">&#34;numberOfFollowers&#34;</span><span class="p">:</span> <span class="mi">0</span>
</span></span><span class="line"><span class="cl">    <span class="p">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>The information is exactly what&rsquo;s expected, containing information about your playlists and their contents, but nothing more. Noteworthy is however that there are no information about the lists that you follow, only the ones you have created.</p>
<h3 id="searchqueriesjson">SearchQueries.json</h3>
<p>After looking at the file, the contents only show the searches for the last three months. This indicates that Spotify does regularly clean up their data to avoid collecting to much of it, a big plus from me!</p>
<p>each query has the following information:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl">  <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;platform&#34;</span> <span class="p">:</span> <span class="s2">&#34;ANDROID_ARM&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;searchTime&#34;</span> <span class="p">:</span> <span class="s2">&#34;2020-10-09T10:36:07.879Z[UTC]&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;searchQuery&#34;</span> <span class="p">:</span> <span class="s2">&#34;lofi &#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;searchInteractionURIs&#34;</span> <span class="p">:</span> <span class="p">[</span>
</span></span><span class="line"><span class="cl">      <span class="s2">&#34;spotify:playlist:0pGdGpMm84h2Jl6Q1KmTMn&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">]</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>Here are some more data, but not so much as to raise any flags. The platform might not be necessary in this context, but I&rsquo;m not that surprised to se it.</p>
<h3 id="streaminghistory0json">StreamingHistory0.json</h3>
<p>This file logs all the songs you have listened to within the timespan of the log. For me this is a bit more than 12 months, but I cannot specify that exactly with this data. The log contains about what you expect, such as time, how long the song was listened to, and what song.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl">  <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;endTime&#34;</span> <span class="p">:</span> <span class="s2">&#34;2020-12-17 14:28&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;artistName&#34;</span> <span class="p">:</span> <span class="s2">&#34;RadioClub&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;trackName&#34;</span> <span class="p">:</span> <span class="s2">&#34;Never Gonna Give You Up&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;msPlayed&#34;</span> <span class="p">:</span> <span class="mi">161297</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span><span class="err">,</span>
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="userdatajson">Userdata.json</h3>
<p>The user-data collected about the user. Note, here I&rsquo;ve changed my information to XXX. If there is a NULL, Spotify has not populated the data.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;username&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;email&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;country&#34;</span><span class="p">:</span> <span class="s2">&#34;SE&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;createdFromFacebook&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;facebookUid&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;birthdate&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;gender&#34;</span><span class="p">:</span> <span class="s2">&#34;male&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;postalCode&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;mobileNumber&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;mobileOperator&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;mobileBrand&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;creationTime&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX&#34;</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>I find it interesting that Spotify collects information about the mobile brand and operator. I cannot tell why this is not populated for my account, but might be something to watch out for.</p>
<h2 id="missing-information">Missing Information</h2>
<p>After investigating the full data export from Spotify I feel that there are some data missing. I cannot find any references to playlists that I follow. When reaching out to Spotify about this they recommended that I look for it in the second level of data. The support representative triggered the collection, and after that the data was downloaded the same way as the level 1 data.</p>
<h2 id="analysis-of-the-level-2-data">Analysis of the Level 2 Data</h2>
<p>The second level of data contains a lot more than the first. As shown below there are <strong>111</strong> files in the second level.</p>
<pre tabindex="0"><code>ls -lah
total 27M
drwxr-xr-x 1 edbro 197121    0 Jan 13 18:16 .
drwxr-xr-x 1 edbro 197121    0 Jan 13 18:16 ..
-rw-r--r-- 1 edbro 197121  42K Jan 13 18:28 A11yFeatureUsage.json
-rw-r--r-- 1 edbro 197121 1.9K Jan 13 18:28 AccountMutated.json
-rw-r--r-- 1 edbro 197121  768 Jan 13 18:28 ActionLog.json
-rw-r--r-- 1 edbro 197121  44K Jan 13 18:29 AdRequestEvent.json
-rw-r--r-- 1 edbro 197121 5.8K Jan 13 18:29 AddToPlaylist.json
-rw-r--r-- 1 edbro 197121  393 Jan 13 18:28 AddedToCollection.json
-rw-r--r-- 1 edbro 197121 2.9K Jan 13 18:28 AddedToPlaylist.json
-rw-r--r-- 1 edbro 197121  247 Jan 13 18:28 AddedToRootlist.json
-rw-r--r-- 1 edbro 197121 138K Jan 13 18:29 AndroidDeviceReport.json
-rw-r--r-- 1 edbro 197121 267K Jan 13 18:32 ApAuthenticationSuccess.json
-rw-r--r-- 1 edbro 197121 231K Jan 13 18:29 Ap_AdEvent.json
-rw-r--r-- 1 edbro 197121 2.6K Jan 13 18:29 Ap_AddToPlaylist.json
-rw-r--r-- 1 edbro 197121 4.1K Jan 13 18:30 Ap_BrowseLink.json
-rw-r--r-- 1 edbro 197121 450K Jan 13 18:30 Ap_Download.json
-rw-r--r-- 1 edbro 197121 2.1M Jan 13 18:30 Ap_EndSong.json
-rw-r--r-- 1 edbro 197121 1.4M Jan 13 18:30 Ap_ExternalAccessory.json
-rw-r--r-- 1 edbro 197121  56K Jan 13 18:31 Ap_Interaction.json
-rw-r--r-- 1 edbro 197121 296K Jan 13 18:31 Ap_LogIn.json
-rw-r--r-- 1 edbro 197121 913K Jan 13 18:31 Ap_PageView.json
-rw-r--r-- 1 edbro 197121  59K Jan 13 18:31 Ap_Share.json
-rw-r--r-- 1 edbro 197121 421K Jan 13 18:32 Ap_UIInteraction.json
-rw-r--r-- 1 edbro 197121 552K Jan 13 18:35 AppFocusState.json
-rw-r--r-- 1 edbro 197121 187K Jan 13 18:35 AudioDriverInfo.json
-rw-r--r-- 1 edbro 197121 298K Jan 13 18:37 AudioFileSelection.json
-rw-r--r-- 1 edbro 197121  32K Jan 13 18:37 AudioOffliningSettingsReport.json
-rw-r--r-- 1 edbro 197121 742K Jan 13 18:37 AudioRouteSegmentEnd.json
-rw-r--r-- 1 edbro 197121 230K Jan 13 18:37 AudioSessionEvent.json
-rw-r--r-- 1 edbro 197121 175K Jan 13 18:37 AudioSettingsReport.json
-rw-r--r-- 1 edbro 197121  33K Jan 13 18:38 AudioStreamingSettingsReport.json
-rw-r--r-- 1 edbro 197121  44K Jan 13 18:38 AuthHTTPReqWebapi.json
-rw-r--r-- 1 edbro 197121  595 Jan 13 18:38 AuthorizationCodeExchangeSuccess.json
-rw-r--r-- 1 edbro 197121 227K Jan 13 18:38 BrokenObject.json
-rw-r--r-- 1 edbro 197121 4.3K Jan 13 18:38 CacheError.json
-rw-r--r-- 1 edbro 197121  83K Jan 13 18:38 CachePruningReport.json
-rw-r--r-- 1 edbro 197121 178K Jan 13 18:39 CacheRealmPruningReport.json
-rw-r--r-- 1 edbro 197121 1.4M Jan 13 18:39 CacheRealmReport.json
-rw-r--r-- 1 edbro 197121 351K Jan 13 18:39 CacheReport.json
-rw-r--r-- 1 edbro 197121 9.0K Jan 13 18:39 ClientLocale.json
-rw-r--r-- 1 edbro 197121  47K Jan 13 18:39 ClientRespondedToConnectStateCommand.json
-rw-r--r-- 1 edbro 197121 1.1K Jan 13 18:39 ClientSentConnectStateCommandSourceIP.json
-rw-r--r-- 1 edbro 197121  34K Jan 13 18:39 ClientSentConnectStateCommandTargetIP.json
-rw-r--r-- 1 edbro 197121  48K Jan 13 18:40 ColdStartupSequence.json
-rw-r--r-- 1 edbro 197121 537K Jan 13 18:40 ConfigurationApplied.json
-rw-r--r-- 1 edbro 197121  33K Jan 13 18:40 ConnectDeviceDiscovered.json
-rw-r--r-- 1 edbro 197121 1.2K Jan 13 18:42 ConnectTransferResult.json
-rw-r--r-- 1 edbro 197121 393K Jan 13 18:41 ConnectionError.json
-rw-r--r-- 1 edbro 197121  58K Jan 13 18:42 DailyMixContents.json
-rw-r--r-- 1 edbro 197121  84K Jan 13 18:42 DailyXContents.json
-rw-r--r-- 1 edbro 197121 2.5K Jan 13 18:42 DeeplinkOpen.json
-rw-r--r-- 1 edbro 197121 3.6K Jan 13 18:42 DefaultConfigurationApplied.json
-rw-r--r-- 1 edbro 197121 9.6K Jan 13 18:43 DesktopGPUAccelerationInfo.json
-rw-r--r-- 1 edbro 197121 1.8K Jan 13 18:43 DesktopUpdateDownloadComplete.json
-rw-r--r-- 1 edbro 197121 2.5K Jan 13 18:43 DesktopUpdateMessageAction.json
-rw-r--r-- 1 edbro 197121 3.1K Jan 13 18:43 DesktopUpdateMessageProcessed.json
-rw-r--r-- 1 edbro 197121  23K Jan 13 18:43 DesktopUpdateResponse.json
-rw-r--r-- 1 edbro 197121 128K Jan 13 18:43 DeviceIdentifier.json
-rw-r--r-- 1 edbro 197121 298K Jan 13 18:43 DeviceQuery.json
-rw-r--r-- 1 edbro 197121 6.9M Jan 13 18:44 Download.json
-rw-r--r-- 1 edbro 197121 230K Jan 13 18:44 DrmRequestFailure.json
-rw-r--r-- 1 edbro 197121 129K Jan 13 18:44 ExternalAccessoryRemoteInteraction.json
-rw-r--r-- 1 edbro 197121 1.5K Jan 13 18:44 ExternalDeviceInfo.json
-rw-r--r-- 1 edbro 197121 295K Jan 13 18:44 HeadFileDownload.json
-rw-r--r-- 1 edbro 197121 1.4K Jan 13 18:44 InAppMessageDiscardedEvent.json
-rw-r--r-- 1 edbro 197121 2.2K Jan 13 18:44 InAppMessageImpressionEvent.json
-rw-r--r-- 1 edbro 197121  542 Jan 13 18:44 InAppMessageInteractionEvent.json
-rw-r--r-- 1 edbro 197121 2.1K Jan 13 18:45 InAppMessagePresentationPerformanceEvent.json
-rw-r--r-- 1 edbro 197121 2.1K Jan 13 18:45 KmInteraction.json
-rw-r--r-- 1 edbro 197121 1.8K Jan 13 18:45 KmPageView.json
-rw-r--r-- 1 edbro 197121  13K Jan 13 18:45 LanguageSelection.json
-rw-r--r-- 1 edbro 197121 103K Jan 13 18:45 LocalFilesReport.json
-rw-r--r-- 1 edbro 197121  371 Jan 13 18:45 NewLoginNotificationSent.json
-rw-r--r-- 1 edbro 197121  581 Jan 13 18:45 OAuthAuthorizeGrant.json
-rw-r--r-- 1 edbro 197121  28K Jan 13 18:45 OfflineError.json
-rw-r--r-- 1 edbro 197121 9.6K Jan 13 18:45 OfflineEvent.json
-rw-r--r-- 1 edbro 197121 193K Jan 13 18:45 OfflineReport.json
-rw-r--r-- 1 edbro 197121  38K Jan 13 18:45 ParadoxCampaignOptimizerEvent.json
-rw-r--r-- 1 edbro 197121  234 Jan 13 18:46 PlacedOrderClosed.json
-rw-r--r-- 1 edbro 197121  184 Jan 13 18:46 PlacedOrderCreated.json
-rw-r--r-- 1 edbro 197121 1.7K Jan 13 18:46 PlaybackError.json
-rw-r--r-- 1 edbro 197121 8.5K Jan 13 18:46 PlaybackInitiatedOnDevice.json
-rw-r--r-- 1 edbro 197121 1.3K Jan 13 18:46 PlaybackRetry.json
-rw-r--r-- 1 edbro 197121 1.1M Jan 13 18:46 PlaybackSegments.json
-rw-r--r-- 1 edbro 197121  82K Jan 13 18:46 PlayerStateRestore.json
-rw-r--r-- 1 edbro 197121 907K Jan 13 18:46 Prefetch.json
-rw-r--r-- 1 edbro 197121  54K Jan 13 18:46 PushAndroidDeviceSettingsV1.json
-rw-r--r-- 1 edbro 197121  55K Jan 13 18:46 PushNotificationAndroidOSChannels.json
-rw-r--r-- 1 edbro 197121 1.1K Jan 13 18:46 PushTokenRegistrationErrorV1.json
-rw-r--r-- 1 edbro 197121 4.8K Jan 13 18:46 PushTokenRegistrationV1.json
-rw-r--r-- 1 edbro 197121  12K Jan 13 18:46 PushkaPushEventV1.json
-rw-r--r-- 1 edbro 197121 179K Jan 13 18:16 Read_Me_First.pdf
-rw-r--r-- 1 edbro 197121  198 Jan 13 18:47 RemovedFromCollection.json
-rw-r--r-- 1 edbro 197121  17K Jan 13 18:47 RequestFailure.json
-rw-r--r-- 1 edbro 197121 8.8K Jan 13 18:47 ResolveConfigurationError.json
-rw-r--r-- 1 edbro 197121 396K Jan 13 18:47 SearchViewResponse.json
-rw-r--r-- 1 edbro 197121  43K Jan 13 18:47 SemanticMetricClient.json
-rw-r--r-- 1 edbro 197121 4.2K Jan 13 18:47 Share.json
-rw-r--r-- 1 edbro 197121  397 Jan 13 18:47 SocialConnectSessionCreated.json
-rw-r--r-- 1 edbro 197121  428 Jan 13 18:47 SocialConnectSessionJoined.json
-rw-r--r-- 1 edbro 197121 4.2K Jan 13 18:47 SocialConnectUserActiveDeviceChanged.json
-rw-r--r-- 1 edbro 197121  948 Jan 13 18:47 SongCreditsRequest.json
-rw-r--r-- 1 edbro 197121 1.8M Jan 13 18:47 SportyFormatlistRequest.json
-rw-r--r-- 1 edbro 197121 109K Jan 13 18:48 StartContext.json
-rw-r--r-- 1 edbro 197121 7.2K Jan 13 18:48 Stutter.json
-rw-r--r-- 1 edbro 197121 158K Jan 13 18:48 TrackNotPlayed.json
-rw-r--r-- 1 edbro 197121 4.4K Jan 13 18:48 TrackStuck.json
-rw-r--r-- 1 edbro 197121  381 Jan 13 18:48 TransactionalEmailerEmailEvent.json
-rw-r--r-- 1 edbro 197121 2.1K Jan 13 18:48 UserAuthenticationFailure.json
-rw-r--r-- 1 edbro 197121 141K Jan 13 18:48 UserAuthenticationSuccess.json
-rw-r--r-- 1 edbro 197121 329K Jan 13 18:48 ViewLoadSequence.json
-rw-r--r-- 1 edbro 197121 214K Jan 13 18:48 VoiceAdLog.json
-rw-r--r-- 1 edbro 197121 8.4K Jan 13 18:48 WindowSize.json
</code></pre><p>Due to the sheer amount of data, my analysis of the second level will not describe it in the same depth as the first level. However, I wish to provide some of the highlights from my analysis.</p>
<h3 id="device-information">Device Information</h3>
<p>Multiple of the files contain detailed information about the devices used to listen to Spotify. One of the most detailed ones are <em>AndroidDeviceReport.json</em> and <em>DesktopUpdateResponse.json</em>. The first of these, <em>AndroidDeviceReport.json</em> contains detailed information about any android device. As shown below it contains both hardware and software versions used by the device.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;timestamp_utc&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-10-29T06:08:27.652Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_application_version&#34;</span><span class="p">:</span> <span class="s2">&#34;8.5.XX.XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_conn_country&#34;</span><span class="p">:</span> <span class="s2">&#34;SE&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_device_manufacturer&#34;</span><span class="p">:</span> <span class="s2">&#34;OnePlus&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_device_model&#34;</span><span class="p">:</span> <span class="s2">&#34;ONEPLUS A5010&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_os_name&#34;</span><span class="p">:</span> <span class="s2">&#34;android&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_os_version&#34;</span><span class="p">:</span> <span class="s2">&#34;9&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_receiver_service_timestamp&#34;</span><span class="p">:</span> <span class="mi">1603951738251</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_time&#34;</span><span class="p">:</span> <span class="mi">1603951707652</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_cpu_family&#34;</span><span class="p">:</span> <span class="mi">4</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_cpu_features&#34;</span><span class="p">:</span> <span class="mi">127</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_fb_yearclass&#34;</span><span class="p">:</span> <span class="mi">2016</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_firmware&#34;</span><span class="p">:</span> <span class="s2">&#34;ONEPLUS A5010_43_XXXXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_manufacturer&#34;</span><span class="p">:</span> <span class="s2">&#34;OnePlus&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_max_freq&#34;</span><span class="p">:</span> <span class="mi">2457600</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_memory&#34;</span><span class="p">:</span> <span class="mi">5991428096</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_num_processors&#34;</span><span class="p">:</span> <span class="mi">8</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_screen_height&#34;</span><span class="p">:</span> <span class="mi">2160</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_screen_size&#34;</span><span class="p">:</span> <span class="mf">6.021566867828369</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_screen_width&#34;</span><span class="p">:</span> <span class="mi">1080</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p><strong>Note:</strong> I have anonymized some of the information with XXX.</p>
<p><em>DesktopUpdateResponse.json</em> contains similar information about windows devices. Not as detailed, but almost. It contains information such as OS version, and if it can find it the device make and model.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_is_employee&#34;</span><span class="p">:</span> <span class="s2">&#34;\u0000&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;timestamp_utc&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-11-30T13:45:32.882Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_application_version&#34;</span><span class="p">:</span> <span class="s2">&#34;1.1.46.916&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_conn_country&#34;</span><span class="p">:</span> <span class="s2">&#34;SE&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_device_manufacturer&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_device_model&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_os_name&#34;</span><span class="p">:</span> <span class="s2">&#34;windows&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_os_version&#34;</span><span class="p">:</span> <span class="s2">&#34;10.0.18363&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_receiver_service_timestamp&#34;</span><span class="p">:</span> <span class="mi">1606743933381</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_time&#34;</span><span class="p">:</span> <span class="mi">1606743932882</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_error_message&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_payload_size&#34;</span><span class="p">:</span> <span class="mi">3</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_request_time_ms&#34;</span><span class="p">:</span> <span class="mi">349</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_status_code&#34;</span><span class="p">:</span> <span class="mi">200</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span><span class="err">,</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>The windows data is quite limited in time, and does only seem to be saved for logging and deleted after about 1 - 2 months. The android data on the other hand is saved much longer, my estimate would be about half a year. From a personal perspective I wish that this would have been a bit shorter, but it is not long enough for me to raise any concerns.</p>
<h3 id="usage-information">Usage Information</h3>
<p>As expected the level 2 data contains much more detailed information about any action taken in the software. For example if we look at <em>Ap_EndSong.json</em> it contains information about whenever a song is stopped.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;identData_ip_addr&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX.XXX.XXX.x&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;identData_username&#34;</span><span class="p">:</span> <span class="kc">null</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_referer&#34;</span><span class="p">:</span> <span class="s2">&#34;home&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;timestamp_utc&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-08-16T13:49:51Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_incognito_mode&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_ms_played&#34;</span><span class="p">:</span> <span class="mi">110066</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_offline&#34;</span><span class="p">:</span> <span class="kc">false</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_offline_timestamp&#34;</span><span class="p">:</span> <span class="mi">1597585679267</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_reason_end&#34;</span><span class="p">:</span> <span class="s2">&#34;trackdone&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_reason_start&#34;</span><span class="p">:</span> <span class="s2">&#34;trackdone&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_shuffle&#34;</span><span class="p">:</span> <span class="kc">true</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_source_end&#34;</span><span class="p">:</span> <span class="s2">&#34;playlist&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_source_start&#34;</span><span class="p">:</span> <span class="s2">&#34;playlist&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_transition&#34;</span><span class="p">:</span> <span class="s2">&#34;crossfade&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span><span class="err">,</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>This contains two timestamps, both one of the server, and one of the local playback device. It tracks how it was played, and why it was ended. Lastly it contains the class C IP address from where the song was played. Note however that I have anonymized the three first octets of the address. The last was not provided by Spotify.</p>
<h3 id="apauthenticationsuccessjson">ApAuthenticationSuccess.json</h3>
<p>Lets look at a file that warrents a section on its own. <em>ApAuthenticationSuccess.json</em> contains the unique device ID of any device used to sign in. For windows this is a SID, generated when windows was installed. In addition it contains the full IP address, not the masked as used in other files.</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_brand&#34;</span><span class="p">:</span> <span class="s2">&#34;&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_device_id&#34;</span><span class="p">:</span> <span class="s2">&#34;S-1-5-21-3176720717-XXXXXXXXXX-XXXXXXXXXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_ip_address&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX.XXX.XXX.XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;timestamp_utc&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-12-14T12:31:46.001Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_time&#34;</span><span class="p">:</span> <span class="mi">1607949106001</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_client_id&#34;</span><span class="p">:</span> <span class="s2">&#34;65b708073fc0480ea92a077233ca87bd&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_language&#34;</span><span class="p">:</span> <span class="s2">&#34;en&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_platform&#34;</span><span class="p">:</span> <span class="s2">&#34;win32-x86&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_platform_version&#34;</span><span class="p">:</span> <span class="s2">&#34;11470XXXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_system_info&#34;</span><span class="p">:</span> <span class="s2">&#34;Windows 10 (10.0.XXXXX; x64)&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span><span class="err">,</span>
</span></span><span class="line"><span class="cl">  <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_brand&#34;</span><span class="p">:</span> <span class="s2">&#34;&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_device_id&#34;</span><span class="p">:</span> <span class="s2">&#34;a404dc240fc3c868&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_ip_address&#34;</span><span class="p">:</span> <span class="s2">&#34;XXX.XXX.XXX.XXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;timestamp_utc&#34;</span><span class="p">:</span> <span class="s2">&#34;2020-10-21T07:45:31.889Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;context_time&#34;</span><span class="p">:</span> <span class="mi">1603266331889</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_client_id&#34;</span><span class="p">:</span> <span class="s2">&#34;9a8d2f0ce77a4e248bb71fefcb557637&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_language&#34;</span><span class="p">:</span> <span class="s2">&#34;en_GB&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_platform&#34;</span><span class="p">:</span> <span class="s2">&#34;android-arm&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_platform_version&#34;</span><span class="p">:</span> <span class="s2">&#34;85800XXXX&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="nt">&#34;message_system_info&#34;</span><span class="p">:</span> <span class="s2">&#34;Android OS 9 API XX (OnePlus, ONEPLUS A5010)&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span><span class="err">,</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>Once more I&rsquo;ve anonymized the data with <em>XXX</em>. Wherever there is an X in this data I have deleted the information about me and my devices.</p>
<p>The data in this file dates back approximately 3 months from the date when it was extracted. From this I am curious what they use the device ID for. If they need to link a device to an action they could generate a device ID, but to use the one generated by the system will allow them not only to track the movement of the device I use, but also to connect it to any other user that shares that device.</p>
<h2 id="conclusion">Conclusion</h2>
<p>The information I&rsquo;ve found in my level 1 data export give me a good feeling about what Spotify saves about me. Even though some concerns was raised after the examination of the level 2 data it is over all quite good. When receiving the data, the sheer amount of it was quite daunting, but after analysing it, there was not as many worries as expected.</p>
<p>I do not agree with the extent to which they collect data about my devices, but that is one of very few concerns. After looking through the data, my conclusion is that for the service they provide, the data they collect is acceptable. As always, there are things I wish was better, but the concerns are not critical.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Security Professionals Have to be More than Nay-Sayers</title>
      <link>https://edbro.net/posts/security-professionals-have-to-be-more-than-nay-sayers/</link>
      <pubDate>Tue, 15 Dec 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/security-professionals-have-to-be-more-than-nay-sayers/</guid>
      <description>&lt;p&gt;A couple of weeks back I had a very interesting meeting at work. After meeting a new development team and discussing security (testing), they commented on how great it was to work with a driven and interested security engineer instead of a nay-sayer. This got me thinking about the overall view of security professionals from others, and realised that we are often seen as a hindrance.&lt;/p&gt;
&lt;p&gt;This line of thinking arose once more after reading the &amp;ldquo;Report on the 2020 FOSS Contributor Survey&amp;rdquo; &lt;a href=&#34;#references&#34;&gt;[1]&lt;/a&gt;. The report highlights that developers of FOSS (Free Open Source Software) have the same view, that security is a hindrance, a necessary evil that has to be done. Something to not spend more time on than absolutely necessary since its just annoying and boring, something that we must strive to change.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A couple of weeks back I had a very interesting meeting at work. After meeting a new development team and discussing security (testing), they commented on how great it was to work with a driven and interested security engineer instead of a nay-sayer. This got me thinking about the overall view of security professionals from others, and realised that we are often seen as a hindrance.</p>
<p>This line of thinking arose once more after reading the &ldquo;Report on the 2020 FOSS Contributor Survey&rdquo; <a href="#references">[1]</a>. The report highlights that developers of FOSS (Free Open Source Software) have the same view, that security is a hindrance, a necessary evil that has to be done. Something to not spend more time on than absolutely necessary since its just annoying and boring, something that we must strive to change.</p>
<p>Sure there are some times that we have to say no, but developers (and others) does often understand this if we just explain why. It is important to not be the nay-sayers in the corner, but rather get involved. In my eyes security must support the business and the rest of the organisation. Everyone has to be on the same team and work towards a common goal, whether that is a high quality software or good backups in case of ransomware.</p>
<p>To be able to co-operate we need to build trust and ensure good communication. I have not meet a single developer that have introduced a vulnerability with malicious intent, meaning that the best way to get him to want to work with security is to make it easy. Explain your recommendations for a reasonable level of security. No-one can protect against everything, but you must find what level of risk is acceptable in the current scenario. Are you protecting against a national state or against the everyday hackers? The effort needed is greatly different.</p>
<p>In conclusion, security professionals cannot be a breed for them self in a corner. They need to be visible in the organisation, promoting communication and helping the organisation take decisions that improves the security. It doesn&rsquo;t matter whether the decision is made by the CEO or a junior developer, they are both as important for the overall security posture of the organisation.</p>
<h2 id="references">References</h2>
<ol>
<li><a href="https://www.linuxfoundation.org/blog/2020/12/download-the-report-on-the-2020-foss-contributor-survey/">https://www.linuxfoundation.org/blog/2020/12/download-the-report-on-the-2020-foss-contributor-survey/</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>The Triad of Security</title>
      <link>https://edbro.net/posts/the-triad-of-security/</link>
      <pubDate>Tue, 01 Dec 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/the-triad-of-security/</guid>
      <description>&lt;p&gt;In the news lately I&amp;rsquo;ve seen multiple news stories where security breaches have been discussed. Most of them have followed sensitive data being disclosed after a company has been hacked. In cybersecurity usually categorise a vulnerability or incident based on its impact, and to do so we use the CIA triad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NO&lt;/strong&gt;, CIA in this case does not stand for &lt;em&gt;Central Intelligence Agency&lt;/em&gt;. In this case CIA stands for the three kinds of impact a vulnerability can have, Confidentiality, Integrity and Availability.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In the news lately I&rsquo;ve seen multiple news stories where security breaches have been discussed. Most of them have followed sensitive data being disclosed after a company has been hacked. In cybersecurity usually categorise a vulnerability or incident based on its impact, and to do so we use the CIA triad.</p>
<p><strong>NO</strong>, CIA in this case does not stand for <em>Central Intelligence Agency</em>. In this case CIA stands for the three kinds of impact a vulnerability can have, Confidentiality, Integrity and Availability.</p>
<p>Lets dig a bit deeper, what does each of these terms mean.</p>
<h3 id="confidentiality">Confidentiality</h3>
<p>Confidentiality is about not exposing internal information to external parties. This could be anything from trade secrets to personal information. This is the area of security that I currently see discussed in the news. A recent example would be the Gunnebo hack <a href="#references">[1]</a>, where the attackers stole confidential information and leaked it online.</p>
<h3 id="integrity">Integrity</h3>
<p>Integrity is in regard to ensuring that data in the system have not been changed. The banking sector excels in this area. Since they handle money and transactions, they have to be certain that no one can add a zero to the content of their bank account.</p>
<h3 id="availability">Availability</h3>
<p>The last part of the triad is availability. Here the goal is ensuring the uptime of the system, that an attacker cannot take it down or block it in an unusable state. An availability attack is often (incorrectly) called a DDoS, or Distributed Denial of Service. This is one of the most trivial way of impacting the availability, but not the only. It is achieved by overloading the system with requests.</p>
<h2 id="media-and-cia">Media and CIA</h2>
<p>In the years I&rsquo;ve been following cybersecurity closely in media I&rsquo;ve found that often the focus is on one part of the CIA triad at a time. In the last 5 years there have been a transition from availability to confidentiality. First the discussion was on cryptolockers (malware that encrypts the hard drive and requires a ransom for decryption). Since then the GDPR (General Data Protection Regulation <a href="#references">[2]</a>) among others, the discussion have transitioned towards the privacy of users. This highlights the importance of confidentiality of personal data.</p>
<p>This is where we are today, over the last few months there have been multiple instances where media have interviewed security professionals on information disclosed after a hack.</p>
<h2 id="conclusion">Conclusion</h2>
<p>Regardless of what is discussed in media at the moment, all the parts of the CIA triad is important. Even though a businesses might have a prioritised area, they cannot forget the other parts. Any of them can and will have some kind of business impact, costing the organisation in the long run.</p>
<h2 id="references">References</h2>
<ol>
<li><a href="https://www.euronews.com/2020/10/27/thousands-of-sensitive-documents-stolen-in-swedish-data-hack">https://www.euronews.com/2020/10/27/thousands-of-sensitive-documents-stolen-in-swedish-data-hack</a></li>
<li><a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation">https://en.wikipedia.org/wiki/General_Data_Protection_Regulation</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>A Look at Defence In Depth</title>
      <link>https://edbro.net/posts/a-look-at-defence-in-depth/</link>
      <pubDate>Sat, 31 Oct 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/a-look-at-defence-in-depth/</guid>
      <description>&lt;p&gt;Far to often organisations do all their security work on the few systems that are exposed to the internet. This might be acceptable when you begin the  structured and ongoing work with security, but you should try to move on to defence in depth as soon as possible.&lt;/p&gt;
&lt;p&gt;Defence in depth is where you do not leave security to one layer of an application (or solution), but instead validate the security every step of the way. A common example for this is that even if you have a network firewall you do not disable the firewall in the operating system. This can be transferred to software development as well. In a more complex system each component should get the same security controls. It should not only be the frontend API that validates the input, instead each component should validate the data as untrusted when it receives it from another component. By doing so the resilience of the solution as a whole is greatly improved, where a single issue have limited impact, and might not even be exploitable.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Far to often organisations do all their security work on the few systems that are exposed to the internet. This might be acceptable when you begin the  structured and ongoing work with security, but you should try to move on to defence in depth as soon as possible.</p>
<p>Defence in depth is where you do not leave security to one layer of an application (or solution), but instead validate the security every step of the way. A common example for this is that even if you have a network firewall you do not disable the firewall in the operating system. This can be transferred to software development as well. In a more complex system each component should get the same security controls. It should not only be the frontend API that validates the input, instead each component should validate the data as untrusted when it receives it from another component. By doing so the resilience of the solution as a whole is greatly improved, where a single issue have limited impact, and might not even be exploitable.</p>
<h2 id="example-application-and-its-vulnerabilities">Example application and its vulnerabilities.</h2>
<p>Let us look at a simple system to exemplify potential vulnerabilities. This system is simplified and super minimalistic, but still shows several ways to attack components on the internal network. The application is a web shop exposed to the internet through a firewall. The web shop fetches prices and products from a database. To manage the prices and products employees uses another administrative interface. The administrative interface connects to the same database to update the web shop. In this example, only the web shop is accessible from the internet, and the employee workstation is the only component with unrestricted access to the internet.</p>
<p><img loading="lazy" src="/images/DefenceinDepth.svg"></p>
<p>Let&rsquo;s take a look at a couple of ways this architecture potentially could be exploited and how defence in depth could reduce the impact of these vulnerabilities.</p>
<h3 id="infecting-the-workstation">Infecting the Workstation</h3>
<p>The most obvious way into the network is to infect the employee workstation. This can for example be done by using trojans through emails or public exploits in the operating system. Regardless of how the initial attack is performed, the goal is the same, hijacking the employee workstation to get access to the internal network. To mitigate this it is important to include the workstations in the security policy of the organisation. For example the software on the workstation needs to be up to date with the latest security patches.</p>
<p>In addition to patches, using a good antivirus software will keep a lookout for malicious code on the computer, helping users to distinguish trojans from legitimate files and programs. As an added bonus, the antivirus will log incidents, ensuring that the organisation is aware of failed attacks, and can investigate suspicious activities.</p>
<p>These technical solutions might however not be enough. To circumvent patched software and antivirus the most dedicated attackers might hack the employee instead of the workstation. This can be done in multiple ways. Some examples include social engineering and bribery. Whatever the way the best way to protect the organisation against these attacks is through security awareness training. By getting the employees to be on the lookout for and report suspicious activities most of these attacks will fail.</p>
<h3 id="through-the-web-shop">Through the Web shop</h3>
<p>Organisations are now getting quite good at securing their web applications against attacks that affect their corporate networks. However, there are a couple ways a vulnerable webserver can be abused to gain a foothold and enter the network. In my experience the two most common are components with known vulnerabilities, or administrative interfaces exposed to the internet. Note that these administrative interfaces might be anything from a WordPress admin interface to a SSH server. Neither of which is weak if configured correctly, but far to often they have accounts that can be bruteforced, allowing an attacker to try different credentials until they successfully sign in. The goal of this is to gain access to the solution and then get further access into the corporate network.</p>
<p>Another possibility is to circumvent the webserver and just attack the network directly. This can for example be done by using a SQL-injection or server-side request forgery. An SQL-injection would allow the attacker to execute database commands in the database through the web application, attacking it directly. A server-side request forgery is a vulnerability that abuses a server to make requests against other applications. This means that the attacker can attack any system that the server can connect to, including on the internal network.</p>
<h3 id="vulnerabilities-in-the-administrative-interface">Vulnerabilities in the Administrative Interface</h3>
<p>There are multiple vulnerabilities that can occur in web applications that could be exploited from the internet, even though the application is not accessible. These vulnerabilities uses a legitimate user of the internal application to perform the attack. Attacks that can be exploited could be clickjacking or cross-site request forgery. Both of which rely on a legitimate authenticated user of the vulnerable system visiting a malicious webpage on the internet. While the user thinks they are visiting this webpage on the internet, the attacker is using their browser to send requests to the internal systems, signed in as the victim. The result of this attack can range from the attacker being able to perform actions as the victim, to them being able to exploit other vulnerabilities with an even greater impact.</p>
<p>There are ways to protect against these attacks, but since they exists it is important to not forget these internal systems in regards to security. They should not be allowed to ignore the security recommendations just because they are not exposed to the internet.</p>
<h2 id="conclusion">Conclusion</h2>
<p>There are multiple ways for an attacker to gain access into the internal network of an organisation without them being accessible from nor have access to the internet. Therefore it is important to include all systems in the security work. No systems should be excused because they are not exposed to the internet, you never know how an attacker can gain access to them.</p>
<p>When looking at a more complex system than this, other and more complex attacks emerges, but the conclusion is the same. Do your due diligence for the security of the solution, not only focusing on the exposed parts, but also on the components behind it.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Begining my Journey into Tasklists</title>
      <link>https://edbro.net/posts/begining-my-journey-into-tasklists/</link>
      <pubDate>Sat, 17 Oct 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/begining-my-journey-into-tasklists/</guid>
      <description>&lt;p&gt;In my role I always have to balance how I should spend my time. I usually have one project I&amp;rsquo;m currently working on, and a couple that are in the planning phase for the future. In addition there are requests of different sizes that interrupt any schedule. I love this dynamic, but it isn&amp;rsquo;t always easy.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been using a simple todo software for quite a while now, to keep track of my tasks. However, I have used the list in an ad hoc manner. Not having a routine in my task management meant that the list always was incomplete. About a month ago I had enough and began figuring out a better way to organise my life. Without having reached the final and optimal organisation routine I wish to share my thoughts so far.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In my role I always have to balance how I should spend my time. I usually have one project I&rsquo;m currently working on, and a couple that are in the planning phase for the future. In addition there are requests of different sizes that interrupt any schedule. I love this dynamic, but it isn&rsquo;t always easy.</p>
<p>I&rsquo;ve been using a simple todo software for quite a while now, to keep track of my tasks. However, I have used the list in an ad hoc manner. Not having a routine in my task management meant that the list always was incomplete. About a month ago I had enough and began figuring out a better way to organise my life. Without having reached the final and optimal organisation routine I wish to share my thoughts so far.</p>
<h2 id="the-task-list">The task list</h2>
<p>The first step to start leveraging the positives of todo lists is to figure out where to keep them. For me that choice ended up being in software, but it can just as well be in a paper format. The main thing is that the tasks should be collected at an easily referenced location.</p>
<p>When it comes to software, there are many different solutions to choose from, and depending on your prioritisations different ones might fit your needs. After some considerations I had a set of requirements of what I wished for in my todo software.</p>
<ol>
<li>Cross platform sync: I need my tasks to be synced and accessible on both on my PC and my phone.</li>
<li>Reminders: I want to be able to set a reminder to a task, and that reminder should be shown on relevant devices at the specified time.</li>
<li>Organisation: It should be easy to organise tasks into projects, priorities, locations and so on. In addition it should be easy to filter based on these organisations.</li>
<li>Ease of use. It should be quick and easy to add a task with any organisation and schedule.</li>
<li>Templates: I wish to be able to import a task with subtasks for tasks that are similar.</li>
</ol>
<p>For me these requirements landed me in using Todoist. It allows for projects and tags that I can use for organisation, and the filters allows me to create any tasklist I wish. The main feature however is their quick add, that allows me to add a task with tags, due date, project and more with a single sentence. Not even a single mouseclick needed, just a shortcut and then write.</p>
<h2 id="organisation">Organisation</h2>
<p>How to organise the tasks is personal. For me I have three projects; <em>Private</em>, <em>Work</em> and <em>Templates</em>. In these I use dividers and tags to easily find what I&rsquo;m looking for. Example of tags I use is <em>Digital</em> for tasks I can do anywhere as long as I have a PC, or <em>Anytime</em> for tasks without a due date that can be performed whenever.</p>
<p>Based on these projects and tags I&rsquo;ve created filters that allows me to get an overview of relevant tasks based on my current prerequisites.</p>
<h2 id="routine">Routine</h2>
<p>The main thing I&rsquo;ve come to realise is that the tasklist has to be dynamic and changing. It can and will change in more ways than one. Priorities change, tasks are added and removed, and so does my requirements. Therefore I review my tasks daily (not finished today, what is planned tomorrow) and weekly (this and next week, as well as non scheduled tasks). In addition to reviewing my tasks I&rsquo;ve scheduled for me to review my workflow with my tasks monthly. My current workflow serves me well for now, but it can and will be improved with time. Both through personal experience and through insights from others.</p>
<h2 id="conclusion">Conclusion</h2>
<p>In my journey to improve my productivity I have come to a routine of working with tasks that fit me. It is based on organisation, ease of adding tasks, and continuos improvement. You should try to learn tips and tricks from others, but how you organise and get things done is up to you. Getting inspiration is great, but you must find what works for you.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Handling Penetration Test Findings can be more than Vulnerabilities</title>
      <link>https://edbro.net/posts/handling-penetration-test-findings-can-be-more-than-vulnerabilities/</link>
      <pubDate>Sat, 19 Sep 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/handling-penetration-test-findings-can-be-more-than-vulnerabilities/</guid>
      <description>&lt;p&gt;In my years of working as an application security (appsec) penetration tester I&amp;rsquo;ve come to the conclusion that there are so much more value to be added than pure technical vulnerabilities. To deliver the most value you have to be willing and able to walk the extra mile. Before getting into what can be done to increase the value, let&amp;rsquo;s dig into the two most common types of vulnerabilities.&lt;/p&gt;
&lt;h3 id=&#34;technical-vulnerabilities&#34;&gt;Technical Vulnerabilities&lt;/h3&gt;
&lt;p&gt;The technical vulnerabilities are the most common vulnerabilities we see. This is where the application is abused to do something it shouldn&amp;rsquo;t, for example by injecting code or abusing weak cryptography. Even though the vulnerability is technical, it is important for the reporter to describe how it will impact the business. Otherwise the receiving organisation might not have enough of an understanding to prioritise the issues, and handle them accordingly. Even though a code injection can be used to pivot to other machines, the main impact for the business can often be linked to the confidentiality, integrity and availability of the application. As a tester it can be hard to accept, but a dom based &lt;a href=&#34;https://owasp.org/www-community/attacks/xss/&#34;&gt;XSS&lt;/a&gt; might be an accepted risk if the only impact is defacing the sight by pasting code into the searchbox.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In my years of working as an application security (appsec) penetration tester I&rsquo;ve come to the conclusion that there are so much more value to be added than pure technical vulnerabilities. To deliver the most value you have to be willing and able to walk the extra mile. Before getting into what can be done to increase the value, let&rsquo;s dig into the two most common types of vulnerabilities.</p>
<h3 id="technical-vulnerabilities">Technical Vulnerabilities</h3>
<p>The technical vulnerabilities are the most common vulnerabilities we see. This is where the application is abused to do something it shouldn&rsquo;t, for example by injecting code or abusing weak cryptography. Even though the vulnerability is technical, it is important for the reporter to describe how it will impact the business. Otherwise the receiving organisation might not have enough of an understanding to prioritise the issues, and handle them accordingly. Even though a code injection can be used to pivot to other machines, the main impact for the business can often be linked to the confidentiality, integrity and availability of the application. As a tester it can be hard to accept, but a dom based <a href="https://owasp.org/www-community/attacks/xss/">XSS</a> might be an accepted risk if the only impact is defacing the sight by pasting code into the searchbox.</p>
<h3 id="logical-vulnerabilities">Logical Vulnerabilities</h3>
<p>Logical vulnerabilities are closer connected to the business risks. Instead of abusing the technical capacities of the application, the attacker here abuses the logic of the application. The most common example would be to order -1 books from a webshop. Will that remove cost from the total? Since these logical vulnerabilities are coupled to the business logic, it is often easier to explain them to the business and therefore get them fixed.</p>
<p>There are exceptions however. I would like to split the Logical vulnerabilities into to categories:</p>
<ol>
<li>Abusing unintended behaviour</li>
<li>Abusing intended behaviour</li>
<li>Risks introduced by behaviour</li>
</ol>
<p>The previously described example for webshops is an example of an unintended behaviour. Abusing intended behaviours however is harder to pinpoint, and even harder to explain to the business. This is when a feature is used as intended, but has an unintended consequence. This would for example include a forgot password function sending the password to the users email. The feature works as intended, but it&rsquo;s still a security problem, or even multiple problems.</p>
<ol>
<li>Sending the password to the email is a low risk vulnerability, since email is an unsafe way to send information <a href="#references">[1]</a></li>
<li>The application sending the password to the user means that the password is stored either in clear text, or with reversible cryptography. This increases the risk that if the application gets hacked the passwords will be leaked, and due to password reuse this might mean that users are affected on other sites as well.</li>
</ol>
<p>The third category, risks introduced by behaviours are even more tricky. It could be functionality that is added, but introduces the risk. This can be the possibility to send a download link via text to a validated phonenumber. Spamming one self might not be a huge risk, but if each text message costs 1 cent for the sending company sending enough texts will have a financial impact. I would also argue that privacy of the user falls into this category, since it might impact the public relations of the company as well as adding value to the customers.</p>
<h2 id="the-extra-mile">the Extra Mile</h2>
<p>So with this knowledge, how can we as tester go the extra step to increase the value for our customers? I would argue that in addition to the usual findings that clearly can be exploited, it is our duty to inform the customers about their more subtle risks. By understanding their business as well as their application it is possible to find and report risks introduced by their behaviours. We should think outside the CIA (Confidentiality, Integrity, Availability) triad and think of other risks. With our expertise we have a good possibility to think about privacy and other business impact. It requires a bit more work, but in my experience it is often worth it. The testers experience with security, privacy, and thinking outside the box will often lead to some findings that give aha moments to the client, even if they are not traditional security risks.</p>
<h2 id="references">References</h2>
<ol>
<li><a href="https://en.wikipedia.org/wiki/Email#Privacy_concerns">https://en.wikipedia.org/wiki/Email#Privacy_concerns</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Humane Technology, or Ethics in Software Design</title>
      <link>https://edbro.net/posts/humane-technology-or-ethics-in-software-design/</link>
      <pubDate>Wed, 02 Sep 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/humane-technology-or-ethics-in-software-design/</guid>
      <description>&lt;p&gt;We live in a world where technology compete for our attention, especially on our smartphones. Apps do everything they can to get us to open the app, and not leave it. At least that&amp;rsquo;s how I feel, with endless newsfeeds, notifications and autoplay, it&amp;rsquo;s so easy to just open the phone and get stuck. The feeling is not new, but the thing that pinned it down for me was the book Zucked by Roger McNamee [1]. It highlighted the reason for the feelings, both why companies do it and what they do. By using data companies have on their users they maximise their consumption. This can be in the form of video content on a streaming platform or browsing the newsfeed on social media.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>We live in a world where technology compete for our attention, especially on our smartphones. Apps do everything they can to get us to open the app, and not leave it. At least that&rsquo;s how I feel, with endless newsfeeds, notifications and autoplay, it&rsquo;s so easy to just open the phone and get stuck. The feeling is not new, but the thing that pinned it down for me was the book Zucked by Roger McNamee [1]. It highlighted the reason for the feelings, both why companies do it and what they do. By using data companies have on their users they maximise their consumption. This can be in the form of video content on a streaming platform or browsing the newsfeed on social media.</p>
<p>I would argue that there are two kinds of platforms, the ones where you pay with money, and the one you pay with data. When paying with data, the user is often the product. The way companies sell that product and make money is advertisement. By knowing their users, companies are able to tailor the most appropriate ads for that user. The more ads the user sees, the more revenue for the company earn. Therefore it is in the companies best interest to keep the user engaged and coming back. For social media, it&rsquo;s profitable to be addictive. The more users stay on the platform, and the more they interact with it, the more the platforms know about the user and therefore can show more and better ads.</p>
<p>As an answer to this exploitation of users and their data a movement have risen. Humane technology aims for ethical technology. By focusing on adding value to the user, without exploiting the nor their data, it is the polar opposite of where many of the major platforms are heading. The <a href="https://www.humanetech.com">Center for Humane Technology</a> is a great source of both inspiration and knowledge when it comes to these areas. They even propose the following principles[2]:</p>
<ol>
<li><strong>Obsess over Values</strong>; Today there is an obsession with clicks, likes, and other instant reaction metrics. This promotes clickbait to maximise the metrics. Instead we should use metrics of actual value (fun, creativity, well-being), what did the user get out of this? It is harder to measure, but ensures greater value for all parties.</li>
<li><strong>Strengthen Existing Brilliance</strong>; Technology is moving very fast, and enters more and more spaces. But not all things needs a technical adaptation or solution. Some things cannot be replaced with technology. For example, If you feel lonely a weekend evening after being home alone, the solution might be to invite some friends over for dinner and discussion. Tech could help you set it up, prepare the meal etc. but when you are seated at the table, it&rsquo;s you and your friends that bring each other joy.</li>
<li><strong>Make the Invisible Visceral</strong>; To ensure that we consider every ethical and safety aspect of our product it can be a good idea to how we frame our user personas in the design. By considering a random old lady to be a relative of yours, perhaps your grandmother, you might be more cautious about how the product might affect her.</li>
<li><strong>Enable Wise Choices</strong>; By changing the way we frame the information we help the readers to make a choice. All information will have a bias for one interpretation. A common example is the cows are deadlier than sharks statistic, that is biased towards the dangers of cows due to the large difference in shark to cow population. This does however not mean that cows are more dangerous than sharks.</li>
<li><strong>Nurture Mindfulness</strong>; To ensure the well-being of the user it is important to allow for a balanced experience. By nurturing the users mindfulness their awareness increases. When there is not a new notification prompting them to engage whenever there is a dull moment it promotes actively searching out whatever the user needs, and sometimes that is just a calm moment to relax.</li>
<li><strong>Bind Growth with Responsibility</strong>; The only goal should not be in the number of users, platforms and other technology should take their responsibilities to grow ethically. How can we grow without compromising our values? You should not be willing to grow at any cost, but rather find a balance where your ethics are sound, and your users happy.</li>
</ol>
<p>These steps are a great way to start working towards a humane technology, but as with the prisoners dilemma [3] it is still easy for others to not play nice, and exploit the user to gain more influence. I hope that we continue to move in a direction where the users gain enough insight to reward nice and ethical behaviour (humane technology) over exploiting users.</p>
<ol>
<li><a href="https://www.zuckedbook.com/">https://www.zuckedbook.com/</a></li>
<li><a href="https://www.humanetech.com/technologists">https://www.humanetech.com/technologists</a></li>
<li><a href="https://en.wikipedia.org/wiki/Prisoner%27s_dilemma">https://en.wikipedia.org/wiki/Prisoner%27s_dilemma</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>a Journey from Technical Debts to Risks</title>
      <link>https://edbro.net/posts/a-journey-from-technical-debts-to-risks/</link>
      <pubDate>Thu, 20 Aug 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/a-journey-from-technical-debts-to-risks/</guid>
      <description>&lt;p&gt;Technical debt has become a common term when discussing the quality and maintainability of code. There are a lot of definitions of the debt, but they all have some things in common, that debt are the things in the solution that should be fixed but haven&amp;rsquo;t been fixed yet. This could include everything from lack of documentation or test coverage to code complexity. The debt might not have been there from the beginning, but rather been introduce while the solution grows. Another common denominator is that the debt will increase the cost of continued development within the solution. This can be seen in several different ways, for example adding a feature to a complex codebase would require more time than adding the same feature to the simple.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Technical debt has become a common term when discussing the quality and maintainability of code. There are a lot of definitions of the debt, but they all have some things in common, that debt are the things in the solution that should be fixed but haven&rsquo;t been fixed yet. This could include everything from lack of documentation or test coverage to code complexity. The debt might not have been there from the beginning, but rather been introduce while the solution grows. Another common denominator is that the debt will increase the cost of continued development within the solution. This can be seen in several different ways, for example adding a feature to a complex codebase would require more time than adding the same feature to the simple.</p>
<p>So why does not everyone just keep the technical debt low? There are a couple of different reasons, firstly it is a bit more expensive to add a feature neatly (reducing technical debt) than to just add it quick and dirty. This could be a part of a deliberate choice to introduce debt, either due to time constraints or due to the necessity to ship what you got and deal with the consequences. The second way technical debt can be introduced without knowing about it in the first place. The reason for this might be due to lack of research and knowledge, or only seeing the impact of decisions in hindsight.</p>
<p>No matter which of these types, or combinations of types, of debt can be found in a software the main point is that they add to the time it takes to develop in the codebase. It also increases the risk of introducing bugs, due to complexity, lack of automatic test cases, or any of several other reasons. The price of the debt is paid each time a change is made, and if no changes are made there are no payments.</p>
<p>Up until this point the information presented is mostly based on Martin Fowlers blog posts [1, 2], but I think these definitions misses one important part of technical debt, the dependencies. Joab Jackson argues that any dependency, such as libraries or frameworks, adds to the technical debt. By adding a dependency, the codebase often increases much more than needed. In doing so the amount of fluff that you need to understand to work in the codebase increases as well, increasing the time it takes and the risk of bugs being introduced. [3] However I would argue that even if there is debt introduced by third party dependencies, it can easily be worth it to use the dependency. The increase in development time and expertise needed when using dependencies save huge amounts of times in relation to the increased time it takes to maintain. One would have to weigh the technical debt from the dependency, and the debt from implementing the code inhouse to know which is the correct way forward.</p>
<p>However, I would argue that there is another technical debt introduced, the debt of keeping the dependencies up to date. The cost of this maintenance is required throughout the whole lifecycle of the solution, to ensure that no bugs are inherited. In a worst-case scenario these bugs could be security bugs with impact on the solution.</p>
<p>The recurring theme when it comes to security and technical debt is that they are not directly linked. From my experience I conclude that there is not any direct security related technical debt. Instead the technical debt could have one of many impacts. For example, it increases the risk of bugs being introduced. These bugs can be functional or non-functional, usability, or security bugs. Technical debt is a general concept in software development, that can be used to communicate the state of the solution. The impacts of the technical debt are what&rsquo;s explained to the leadership, such as time spent and bugs introduced. The source of the debt on the other hand could be a lack of documentation or complex code, which is what the developers have to live with.</p>
<p>To work with technical debt in a structured, and well documented way one could frame the debt as business risks. For example, the technical debt in the codebase introduce risks such as:</p>
<ul>
<li>Lack of automated testcases increase the risk of introducing bugs</li>
<li>Code complexity may increase cost of introducing a new feature</li>
<li>Onboarding team members consumes more time than expected due to lack of documentation</li>
<li>Etc</li>
</ul>
<p>By handling the debt as business risks, it shows how the technical debt can impact the business, and help prioritising it in relation to other risks. In doing so, technical debt and code neatness can be clearly defined together with environmental, juridical and other risks.</p>
<p>My conclusion is that we should be careful when splitting out different problems, calling them different things and handling them in unique ways. A bug is a bug, it might have functional or security impact, but it&rsquo;s still a bug. They should be prioritised based on their impact, and not be separated out. Risks should be handled in the same way, according to a general process where they can be prioritised and acted upon, regardless of if it has security, cost or other impact.</p>
<ol>
<li><a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">https://martinfowler.com/bliki/TechnicalDebtQuadrant.html</a></li>
<li><a href="https://martinfowler.com/bliki/TechnicalDebt.html">https://martinfowler.com/bliki/TechnicalDebt.html</a></li>
<li><a href="https://thenewstack.io/to-reduce-tech-debt-eliminate-dependencies-and-refactoring/">https://thenewstack.io/to-reduce-tech-debt-eliminate-dependencies-and-refactoring/</a></li>
</ol>
]]></content:encoded>
    </item>
    <item>
      <title>Building a Webpage</title>
      <link>https://edbro.net/posts/building-a-webpage/</link>
      <pubDate>Wed, 19 Aug 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/building-a-webpage/</guid>
      <description>&lt;p&gt;So here we go, I finally got around to building a blog, and after looking around at different options i ended up using Jekyll and github pages. In addition to getting me this webpage, it allowed me to get some basic insight into ruby, making this a case of two birds one stone.&lt;/p&gt;
&lt;p&gt;Getting things to work have been quite a fiddle, so lets walk through how I got things up and running.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>So here we go, I finally got around to building a blog, and after looking around at different options i ended up using Jekyll and github pages. In addition to getting me this webpage, it allowed me to get some basic insight into ruby, making this a case of two birds one stone.</p>
<p>Getting things to work have been quite a fiddle, so lets walk through how I got things up and running.</p>
<p>The first step was to get ruby and jekyll installed on my local machine for testing. After trying with wsl I lost my patience and to my surprise it was easier to install directly in windows. Jekyll has a great guide on how to install ruby, jekyll and all dependencies at <a href="https://jekyllrb.com/docs/installation/windows/">https://jekyllrb.com/docs/installation/windows/</a>.</p>
<p>The next step was to create my github repository. To be able to host github pages you have to name the repository <code>&lt;username&gt;.github.io</code> where you replace <code>&lt;username&gt;</code> with your github username. After that I cloned my repository to my local machine and initiated jekyll by running <code>jekyll new .</code> in my repository.</p>
<p>At this point I got a basic blog. By using <code>bundle exec jekyll serve</code> the webpage is built and hosted locally for testing. It works, but now it&rsquo;s time to pretty the page up a bit. After looking around on different themes for a while I ended up choosing <a href="https://github.com/ngzhio/jekyll-theme-hamilton">Hamilton</a>, it fits my needs nicely, and i really enjoy the look. Installing it was as easy as following the guide in the documentation, you just have to remember to change the theme in <code>_config.yml</code>, to ensure that you use the new theme. That took far to long to realise, but finally I made it.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Clicking on Links, What are the Risks?</title>
      <link>https://edbro.net/posts/clicking-on-links-what-are-the-risks/</link>
      <pubDate>Thu, 18 Jun 2020 00:00:00 +0100</pubDate>
      <guid>https://edbro.net/posts/clicking-on-links-what-are-the-risks/</guid>
      <description>&lt;p&gt;One of the most common tips you hear in regard to security is to not click links, but how malicious can a link be in this day and age? In this article I&amp;rsquo;ll discuss the risks I see and what impact they may have, to initiate a discussion about these risks.&lt;/p&gt;
&lt;p&gt;The thing about the internet today is that everything is links, and many sites such as twitter and bit.ly use link shortening to track usage and hide the original address. This makes it hard to know beforehand if the link is legit, and thus might increase the risk, but the impact will be the same. Here are four risks that I see when clicking a link.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>One of the most common tips you hear in regard to security is to not click links, but how malicious can a link be in this day and age? In this article I&rsquo;ll discuss the risks I see and what impact they may have, to initiate a discussion about these risks.</p>
<p>The thing about the internet today is that everything is links, and many sites such as twitter and bit.ly use link shortening to track usage and hide the original address. This makes it hard to know beforehand if the link is legit, and thus might increase the risk, but the impact will be the same. Here are four risks that I see when clicking a link.</p>
<ol>
<li>The most obvious risk is phishing. An attacker can create a serious looking website with the aim to trick a victim to enter sensitive information such as passwords or credit card information. This would allow the attacker to use the stolen information to either sign into the compromised account, or pay with the credit card. However, these attacks are not performed when you click the link, but rather when you enter the information on the site, meaning that this does not qualify as a risk of clicking a link.</li>
<li>There are a few different attacks, for example clickjacking or cross-site request forgery, that targets a website through a victim browsing a third-party website. These attacks allow the culprit to perform actions as a victim on the target site. Instead of infecting the computer of the victim these attacks exploit a vulnerability in the target site to perform actions as the victim.</li>
<li>A reflected Cross-Site Scripting attack, also known as an XSS would exploit a vulnerability in a website to perform actions against that website as a victim. The impact is about the same as explained in 2, but the difference is that a legitimate URL to the target site is sent to the victim. To detect this risk, look for html tags such as <code>&lt;script&gt;</code> in the URL. Like the previous attacks, these attacks cannot infect the computer of the victim, but instead performs actions on the target site.</li>
<li>The most serious risk discussed is vulnerabilities found in the victim’s web browser. These can allow an attacker to compromise the computer to install malicious software such as spy- or ransomware. The best way to protect oneself from vulnerabilities in the browser is to keep it up to date. Most modern browsers are good at fixing bugs as fast as they become known. There is still a small risk that an unknown (aka 0-day) bug is used. However, these bugs are often used in attacks against high profile targets by well-funded hackers.</li>
</ol>
<p>In conclusion, there are still risks with clicking links, but they are not as severe for your computer as they once were. I would say that today it is more important to ensure that your software is updated, that you do not enter information to sites you do not trust, and that you use long and unique passwords for accounts. Lastly, if you notice any strange behaviour on an account on a website you use, change your password and notify the owner of the site.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
