<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Filipi Pires on Medium]]></title>
        <description><![CDATA[Stories by Filipi Pires on Medium]]></description>
        <link>https://medium.com/@filipi86?source=rss-7c5ea898d3fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z3bIW66JQRP5sZc75RWtiw.png</url>
            <title>Stories by Filipi Pires on Medium</title>
            <link>https://medium.com/@filipi86?source=rss-7c5ea898d3fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:18:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@filipi86/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Uncovering Attack Paths based on Misconfiguration]]></title>
            <link>https://medium.com/@filipi86/uncovering-attack-paths-based-on-misconfiguration-4c12621355be?source=rss-7c5ea898d3fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c12621355be</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[attack-path]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Filipi Pires]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 10:01:59 GMT</pubDate>
            <atom:updated>2024-09-20T10:01:59.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Abstract</h3><p><em>Cybersecurity threats are continually evolving, demanding a proactive approach to safeguarding digital assets. One critical aspect of defense is comprehending and securing attack paths — the systematic routes malicious actors take to compromise systems, networks, or organizations. This article explores the concept of attack paths, shedding light on their components, significance, and strategies for fortifying cybersecurity defenses.</em></p><p><em>An attack path comprises reconnaissance, initial access, lateral movement, persistence, and exfiltration. Reconnaissance involves gathering intelligence about potential vulnerabilities, while initial access entails exploiting entry points. Lateral movement sees attackers navigating through networks, establishing persistence to maintain access, and concluding with data exfiltration.</em></p><p><em>Understanding attack paths is paramount for developing effective cybersecurity strategies. By dissecting potential routes, organizations can implement targeted security measures. These may include vulnerability management, access controls, monitoring and detection tools, user education, and robust incident response planning.</em></p><p><em>This article emphasizes the need for continuous cybersecurity education and training, with advocates developing and delivering programs to keep employees informed about evolving threats. Security advocacy campaigns, metrics, and reporting mechanisms further enhance organizational resilience by promoting a strong cybersecurity culture.</em></p><p><em>In conclusion, as cybersecurity threats persist, understanding and securing attack paths remain integral to fortifying defenses. This article advocates for a comprehensive cybersecurity strategy that addresses vulnerabilities at each step of an attack path, ensuring organizations are well-equipped to protect against a dynamic and evolving threat landscape</em>.</p><h3>Introduction:</h3><p>In the rapidly evolving landscape of cybersecurity, staying ahead of potential threats requires a proactive approach. One crucial aspect of this approach is understanding and securing attack paths. An attack path is the sequence of steps an attacker might take to exploit vulnerabilities and compromise a system, network, or organization. This article delves into the concept of attack paths, their significance, and strategies to enhance cybersecurity defenses.</p><h3>What is an Attack Path?</h3><p>An attack path is essentially the roadmap a malicious actor follows to achieve their objectives. It involves identifying and exploiting vulnerabilities in a systematic manner. These vulnerabilities can exist in various elements of a system, including software, hardware, network configurations, and even human factors like misconfiguration, social engineering and others.</p><h3>Components of an Attack Path:</h3><ul><li><strong>Reconnaissance:</strong> The first step in any attack path involves gathering information about the target. This can include identifying potential vulnerabilities, mapping the network architecture, and profiling potential targets within the organization.</li><li><strong>Initial Access: </strong>Once the reconnaissance is complete, the attacker seeks a way to gain initial access to the system. This could involve exploiting software vulnerabilities, using phishing attacks, or compromising user credentials.</li><li><strong>Lateral Movement:</strong> With an initial foothold, the attacker moves laterally through the network, exploring and exploiting additional vulnerabilities. This might involve escalating privileges, compromising other systems, and spreading across the organization.</li><li><strong>Persistence: </strong>To maintain access and avoid detection, attackers often establish persistence by creating backdoors, installing malware, or manipulating system configurations.</li><li><strong>Exfiltration: </strong>The final step in many attack paths involves stealing or manipulating data. Attackers aim to achieve their ultimate goals, such as theft of sensitive information, financial gain, or disruption of operations.</li></ul><h3>Significance of Understanding Attack Paths:</h3><p>Understanding attack paths is crucial for developing effective cybersecurity strategies. By comprehending how attackers might navigate through a system, organizations can implement targeted security measures to disrupt these paths. This involves a combination of technological solutions, regular vulnerability assessments, and user education to mitigate human-related risks.</p><h3>Securing Attack Paths:</h3><ul><li>Vulnerability Management: Regularly identify and patch software vulnerabilities to eliminate potential entry points for attackers.</li><li>Access Control: Implement strong access controls and privilege management to limit lateral movement within the network.</li><li>Monitoring and Detection: Employ robust monitoring tools to detect unusual activities or patterns that may indicate a potential attack in progress.</li><li>User Education: Educate users about security best practices, such as recognizing phishing attempts and practicing good password hygiene, to reduce the human element in attack paths.</li><li>Incident Response Planning: Develop and regularly update an incident response plan to effectively contain and mitigate the impact of a security incident.</li></ul><h3>Understanding HVT and Attack Vector</h3><p>In the context of United States military terminology, a <strong>High-Value Target (HVT)</strong> refers to an individual or asset essential for the successful execution of an enemy commander’s mission. Within your organization, consider which staff members possess the capability to grant access to vital information or systems, and whose compromise could potentially result in a singular point of failure. Identify those individuals whose successful targeting in an attack poses a high-impact risk to the organization.</p><p><strong>High-Value Targets (HVTs)</strong> typically encompass individuals holding prominent roles such as those in the C-Level, board members, senior executive management, executive assistants, or personnel with elevated access privileges to organizational and technological assets. Alternatively, HVTs may constitute entire teams engaged in sensitive or high-stakes projects. Additionally, an individual could transition into an HVT during a defined period, particularly when actively involved in a critical project crucial for the organization.</p><p>Another concept we know as<strong> Attack Vector </strong>which refers to the specific technique employed by cyber attackers to breach a system. It’s important to distinguish between attack vectors and attack surfaces, as the latter encompasses all potential points where adversaries may attempt unauthorized entry into a network or system. While these terms are occasionally conflated, understanding their distinct definitions is crucial for effective cybersecurity analysis and defense.</p><p>Malware, ransomware, and phishing stand as typical instances of prevalent attack vectors. Human errors contributing to the formation of attack vectors involve actions such as:</p><ul><li>Maintaining weak credentials;</li><li>Employing ‘poor’ encryption practices;</li><li>Misconfigurations;</li><li>Granting access to sensitive information through privilege escalation;</li></ul><p>In this sense, an <strong>Attack Vector</strong> serves as the entry point or doorway, while an <strong>Attack Path </strong>functions as a map detailing the adversary’s entry through the door and their subsequent movements within the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*uBGXTtFgqU-7WCYZONHrBQ.png" /><figcaption><a href="https://owasp.org/www-project-top-ten/2017/Application_Security_Risks">https://owasp.org/www-project-top-ten/2017/Application_Security_Risks</a></figcaption></figure><h3>AWS IAM</h3><p>In summary, AWS IAM (Identity and Access Management) is a web service provided by Amazon Web Services (AWS) that enables you to securely control access to AWS services and resources. IAM is a fundamental component of AWS security, allowing you to manage users, groups, roles, and their permissions within your AWS environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*AhxusDL7bBcm2DS9Pf8iBQ.png" /><figcaption>Source: <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html</a></figcaption></figure><p>In AWS Identity and Access Management (IAM), policies are JSON documents that define permissions and can be attached to IAM users, groups, and roles. Each IAM policy has a version associated with it, which indicates the syntax and structure of the policy language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*0P82rqoUo18Fo-ucmpLaIA.png" /><figcaption>Source: <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html</a></figcaption></figure><h3>Exploitation based on Misconfiguration</h3><p>In the complex landscape of Cloud, IT systems and networks, the configuration of various components is a critical aspect of maintaining security and operational integrity. Misconfiguration occurs when settings, permissions, or parameters are not appropriately defined, leaving systems susceptible to exploitation by attackers.</p><p>Common scenarios of misconfiguration encompass a wide range of IT environments:</p><p><strong>→ Cloud Services:</strong></p><ul><li>Misconfigurations in cloud platforms such as Amazon Web Services (AWS), Microsoft Azure, or Google Cloud can expose sensitive data, allow unauthorized access, or lead to unintended consequences.</li></ul><p><strong>→ User Access Controls:</strong></p><ul><li>Mismanagement of user permissions and access controls can lead to unauthorized users gaining excessive privileges, potentially compromising the confidentiality and integrity of data.</li></ul><p><strong>→ Web Servers and Applications:</strong></p><ul><li>Improperly configured web servers, databases, and application servers may introduce vulnerabilities, potentially enabling attackers to execute malicious activities or gain unauthorized access.</li></ul><p><strong>→ Network Devices:</strong></p><ul><li>Misconfigurations in routers, switches, and firewalls can result in network vulnerabilities, allowing unauthorized access, data leakage, or disruptions in service.</li></ul><p><strong>→ Security Software:</strong></p><ul><li>Misconfigured security tools, such as intrusion detection systems or firewalls, may fail to provide effective protection, leaving gaps in the overall security posture.</li></ul><p>The consequences of misconfiguration can be severe, including data breaches, service disruptions, financial losses, and damage to an organization’s reputation. It underscores the importance of implementing robust configuration management practices, conducting regular audits, and staying informed about best practices in cybersecurity to prevent and mitigate the risks associated with misconfigurations.</p><h3>Misconfiguration in IAM services</h3><p>Misconfigurations in Identity and Access Management (IAM) services, such as AWS IAM in cloud environments, can introduce significant security risks. IAM misconfigurations typically involve errors in defining user permissions, roles, policies, or other access controls. These misconfigurations can result in unintended access, data exposure, and potential security breaches. Common issues include overly permissive policies, incorrect trust relationships, and inadequate authentication controls. To mitigate these risks, organizations should implement thorough IAM policies, regularly audit configurations, and stay informed about best practices for secure identity and access management in their cloud environments.</p><h3>Misconfiguration Attack based on Actions in AWS</h3><p><strong><em>Important Note<br></em></strong><em>All these attacks can happen after you or the attacker get the access on </em><strong><em>AWS Secrets</em></strong><em> and </em><strong><em>AWS Keys</em></strong><em> to logging on AWS CLI.</em></p><h3>AWS Attack based on Create Policy Version</h3><p>A potential security risk arises from the <em>iam:CreatePolicyVersion</em> action, granting an attacker the ability to generate a new version of an IAM policy they have access to. This permits them to define customized permissions. Although setting a new policy version as the default typically necessitates the <em>iam:SetDefaultPolicyVersion</em> permission, an exploitable flag ( <em>— set-as-default</em>) can be included during new policy version creation to automatically designate it as the default version. Importantly, the use of this flag doesn’t require the <em>iam:SetDefaultPolicyVersion</em> permission.</p><p>Let’s see what happens when the User doesn’t have this Permission, let’s try some commands:</p><pre>- aws iam list-users<br>- aws iam list-policies<br>- aws iam list-group</pre><p>As you can see the access was denied, because the user doesn’t have this permission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*0NENfdLLnogNpy0TcJTy-Q.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>Let’s create this <strong>New Policy </strong>using this <strong>Action</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*f0smnWEcd6pXafORv6f-3Q.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>After that, as you can see below, the policy called — <strong>PoC-AttackModel </strong>is created, this attack can be done only using iam:CreatePolicyVersion is not necessary add the <em>iam:CreatePolicy</em> as you see in the print the create policy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*HaitEMFKR8LBQmzjW1xc9Q.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>What are the next steps? You can do a simple research on the internet such as:</p><p><em>“aws iam full access policy”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*JcEA8ZPeggRqH8DCyizC1g.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p><em>“AWS CLI how to create new policy version”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*6Q2NPzt0PCs5UauPnroZ1Q.png" /></figure><p>After that you have all steps to perform this attack, you just need to create a full access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJabAKQA3IDqF3CgCJvuug.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>Now, you just need to set the command</p><pre>aws iam create-policy-version –policy-arn target_policy_arn –policy-document file://path/to/user/policy.json –set-as-default</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*q6GyaTb_I5IcxUQ0G9P2MQ.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>Let’s see what happened in the AWS Console after the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*acW22yS-Q9qLKQ4KCZFyMg.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>Now, you have full control over the AWS IAM service, This method of privilege escalation has the capability to grant a user complete administrator access to the AWS account.</p><p>After that you can set simple enumeration commands such as:</p><pre>- aws iam list-users<br>- aws iam list-group<br>- aws iam list-policies</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*GLk3jxqVlef5oGvfPwDY9w.png" /><figcaption>Created by Filipi Pires</figcaption></figure><p>Now, we know the impact about the Misconfiguration in the Cloud, Mapping misconfigurations in Identity and Access Management (IAM) is crucial for ensuring the security and integrity of cloud environments. IAM misconfigurations can lead to unauthorized access, data breaches, and potential compromise of critical resources.</p><p>Let’s see an <strong>OpenSource Project</strong> that you can use to have this visibility in a graph way.</p><p><strong>Cartography</strong> is a Python tool that consolidates infrastructure assets and the relationships between them in an intuitive graph view powered by a <a href="https://www.neo4j.com/">Neo4j</a> database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*n11J4X5vpR-BDunVibeydA.png" /><figcaption>Source: <a href="https://lyft.github.io/cartography/info.html.">https://lyft.github.io/cartography/info.html.</a></figcaption></figure><p>Let’s execute in our demo lab to see possible users that can suffering this attack</p><pre>MATCH(principal:AWSPrincipal) →(policy:AWSPolicy) →(statement:AWSPolicyStatement) WHERE &quot;iam:CreatePolicy&quot; IN statement.action RETURN principal, policy, statement</pre><h3>How can I mitigate it?</h3><p>You can use multiplus aways to solve it, you need to have visibility, and would like to present to you this community project using Cloud Infrastructure Entitlements Management (CIEM) serves the purpose of overseeing access in both cloud and multi-cloud environments. It operates on the principle of Least Privilege, benefiting organizations seeking to mitigate risks such as malicious attacks and data breaches resulting from overly permissive permissions within this infrastructure. A CIEM solution facilitates the removal of unnecessary entitlements, providing centralized visibility and control over permissions within the cloud environment. Leveraging artificial intelligence, a CIEM solution can intelligently analyze a company’s cloud environments, identifying and diminishing cybersecurity risks by assessing exposure levels. In essence, CIEM acts as a comprehensive tool to enhance security and streamline permissions in cloud infrastructures.</p><p>We are inviting you to have first-hand access to our new cloud security platform and participate in our beta users program. If you are an Information Security professional with experience in IAM and wish to participate in the construction of an innovative project, come build with us</p><p><a href="https://senhasegura.com/build-with-us">https://senhasegura.com/build-with-us</a></p><p>Remember the attack mentioned in this article? — <strong>Create Policy Version? </strong>Take a look at this user!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uFtthZpNmee1Db4n_ai2ew.png" /><figcaption>Created by Filipi Pires</figcaption></figure><h3>Conclusion:</h3><p>In the dynamic landscape of cybersecurity, the comprehension and fortification of attack paths emerge as critical imperatives for organizations striving to safeguard their digital assets. The exploration of attack paths in this article illuminates the intricacies of the routes malicious actors traverse to exploit vulnerabilities systematically. As cyber threats continue to evolve, organizations must adopt a proactive and comprehensive cybersecurity strategy that addresses potential weaknesses along every step of an attack path.</p><p>The components of an attack path — reconnaissance, initial access, lateral movement, persistence, and exfiltration — underscore the complexity of cyber threats. Recognizing these components allows organizations to implement targeted security measures, creating a robust defense against potential breaches. Vulnerability management, access controls, monitoring and detection tools, user education, and incident response planning collectively form a multi-faceted approach to thwart cyber adversaries.</p><p>In conclusion, the battle against cyber threats requires a holistic and proactive approach. Understanding and securing attack paths serve as foundational elements in this ongoing struggle. By embracing these concepts and fostering a cybersecurity-aware culture, organizations position themselves not just to defend against current threats but to adapt and thrive in an environment where the only constant is change. In this ever-evolving landscape, the fortification of attack paths is not merely a defensive strategy; it is a proactive stance against the relentless tide of cyber threats.</p><p>As cyber threats continue to evolve, understanding and securing attack paths is essential for organizations to stay resilient. By adopting a comprehensive cybersecurity strategy that addresses potential vulnerabilities at each step of an attack path, businesses can significantly enhance their overall security posture and protect against a wide range of cyber threats.</p><p>In our next articles, we will go into more detail about the impacts of other actions that AWS has, in addition, we will be doing research on other misconfigurations in different cloud providers, besides to starting lines of research into cross-platform attack paths</p><p><strong>References:</strong></p><p>- <a href="https://docs.aws.amazon.com/aws-managed-policy/latest/reference/IAMFullAccess.html">https://docs.aws.amazon.com/aws-managed-policy/latest/reference/IAMFullAccess.html</a></p><p>- <a href="https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/">https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/</a></p><p>- <a href="https://www.xmcyber.com/blog/attack-path-vs-attack-vector-important-differences-you-need-to-know/">https://www.xmcyber.com/blog/attack-path-vs-attack-vector-important-differences-you-need-to-know/</a></p><p>- <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html</a></p><p>- <a href="https://github.com/lyft/cartography">https://github.com/lyft/cartography</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c12621355be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Security & CIEM]]></title>
            <link>https://medium.com/@filipi86/cloud-security-ciem-79d1af3291c3?source=rss-7c5ea898d3fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/79d1af3291c3</guid>
            <category><![CDATA[ciem]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Filipi Pires]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 09:42:40 GMT</pubDate>
            <atom:updated>2024-09-20T10:03:45.639Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays with the evolution of technology, many companies are starting their journey as a cloud native company, they don’t word as a traditional and past infrastructures environment, cloud computing has become accessible, for any people inside of company, since the cloud architecture until marketing team, remote workers, after the covid-19 pandemic many organizations has been increasing theirs access in the cloud.</p><p>This migration or this “adaptation” brings a series of challenges, according to the Gartner Peers Community, they did a question about cloud:</p><p><strong>“What, according to you, is the most common challenge faced with cloud adoption?”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*kiudbUHOiHDFuFsTQSvN0A.png" /><figcaption>source:https://www.gartner.com/peer-community/poll/according-to-most-common-challenge-faced-cloud-adoption</figcaption></figure><p>As we can see almost 30% didn’t have a personnel with “Cloud Expertise”, Almost 30% had a Sheer sprawl of data in the existing environment, 18% no visibility into the content and 13% migration of data to the cloud, that is, almost 80% involved to management of dates and little people of expertise in the cloud, all of these information bring us another important challenge.</p><p>A cloud strategy is a concise viewpoint on the role of cloud computing in the organization. However, business and IT leaders continue to make 10 common mistakes when crafting their cloud strategy, according to Gartner, Inc.</p><p>Gartner analysts are discussing how to enable and exploit cloud, and demonstrate value at the <a href="https://www.gartner.com/en/conferences/emea/infrastructure-operations-cloud-uk">Gartner IT Infrastructure, Operations &amp; Cloud Strategies Conference 2022</a>. Business and IT leaders should collaboratively build a cloud strategy and avoid the following 10 mistakes when building their cloud strategy. Let’s talk about all of them.</p><p><strong>1. Assuming It’s an IT (Only) Strategy</strong></p><p>Cloud computing isn’t only about technology. Those outside IT have skills and knowledge critical to cloud strategy success. “Business and IT leaders should avoid the mistake of devising an IT-centric strategy and then trying to “sell it” to the rest of the business,” said Meinardi. “Business and IT should be equal partners in the definition of the cloud strategy.”</p><p><strong>2. Not Having an Exit Strategy</strong></p><p>Devising an exit strategy from cloud providers is difficult, which is one of the reasons why many leaders don’t create one. Many organizations believe they don’t need an exit strategy because they don’t expect to bring anything back from the cloud. However, an exit strategy is vital to the success of an organization’s cloud strategy. “It’s like having an insurance policy in your drawer, that you hopefully will never need to use,” said Meinardi.</p><p><strong>3. Combining or Confusing a Cloud Strategy with a Cloud Implementation Plan</strong></p><p>A cloud strategy is different from a cloud implementation plan and a cloud strategy must come first. It is the decision phase in which business and IT leaders decide the role that cloud computing will play in the organization. A cloud implementation plan comes next, putting the cloud strategy into effect.</p><p><strong>4. Believing It’s Too Late to Devise a Cloud Strategy</strong></p><p>It is never too late to begin a cloud strategy. “If organizations drive cloud adoption without a strategy this will ultimately cause resistance from individuals who are not aligned on the strategy’s key drivers and principles,” said Meinardi. “As a result, this resistance will slow down cloud adoption and potentially jeopardize the entire cloud project.”</p><p><strong>5. Equating a Cloud Strategy with “We’re Moving Everything to the Cloud”</strong></p><p>Many organizations assume that having a cloud strategy implies moving everything to the cloud. “This approach deters many business and IT leaders from devising a strategy because they think it means they’ll be forced to start using cloud computing for everything,” said Meinardi. “Organizations should keep an open mind and partner with a non-cloud technology expert, such as an enterprise architect, who can bring a broad viewpoint in the definition of your cloud strategy.”</p><p><strong>6. Saying “Our Cloud Strategy Is Our Data Center Strategy”</strong></p><p>Many organizations confuse their cloud strategy with their data center strategy. While organizations need to keep them separate, they need to ensure they align with each other because that affects the role that cloud computing will play in their organization. “Cloud strategy decisions are workload by workload, not data center decisions,” said Meinardi.</p><p><strong>7. Believing That an Executive Mandate Is a Strategy</strong></p><p>Another common mistake that organizations make is to adopt cloud computing because the CEO, CIO or the head of a business unit believes that doing so will result in cost savings. Gartner analysts recommend treating executive mandates as sponsorship to devise a cloud strategy and not as a cloud strategy in and of itself. The cloud strategy should also keep the connection to the business, ensuring that organizations know why workloads are moving and what the goal is.</p><p><strong>8. Believing That Being a &lt;Fill in Vendor&gt; Shop Means That Is the Cloud Strategy</strong></p><p>Organizations will likely use several different cloud services over time. As the use of cloud services could become increasingly broad and diverse, business and IT leaders should devise a broad strategy by accommodating multiple types of scenarios, cloud services, vendors and non-cloud environments.</p><p><strong>9. Outsourcing Development of Your Cloud Strategy</strong></p><p>Outsourcing an organization’s cloud strategy may sound attractive, but should not be done — it is far too important to outsource. Instead, Gartner analysts recommend that business and IT leaders use third parties — even the cloud provider — for implementation. This can be a cost-effective way of procuring the scarce cloud skills their organization needs.</p><p><strong>10. Saying “Our Strategy Is Cloud First” Is the Entire Cloud Strategy</strong></p><p>A cloud-first approach means that if someone asks for an investment, the default place for them to build or place the new asset is in the public cloud. “But cloud-first doesn’t mean cloud only. If business and IT leaders adopt a cloud-first principle, their strategy should work out the exceptions to the default choice that will make applications and elsewhere other than in the cloud,” said Meinardi.</p><p>The big issue is that the larger the company, the more people will have access to cloud-based environments. Moreover, many permissions are granted to applications and machines that connect to other applications and databases to exchange information.</p><p>Thus, it is necessary to have a strategy that limits unnecessary access and prevents inadequate sharing of information, which can be achieved through CIEM.</p><h3>What is CIEM?</h3><p>The purpose of <strong>Cloud Infrastructure Entitlements Management (CIEM)</strong> is to manage access in cloud and multi-cloud environments.</p><p>This is possible through the<strong> principle of Least Privilege</strong>, which contributes to companies that need to avoid risks such as attacks by malicious users and data breaches, problems generated by excessive permissions on this type of infrastructure.</p><p>Thus, a CIEM solution allows you to remove these excessive entitlements and centralize the visibility and control of permissions in a cloud environment.</p><p>Through the use of artificial intelligence, a CIEM solution is also able to analyze exposure levels of a company?s cloud environments, enabling the identification and reduction of cybersecurity risks.</p><h3>How can we help you?</h3><p>Has your company migrated its infrastructure to the Cloud? Do you work in a multi cloud environment? Does your security team have full visibility of identities and entitlements on Cloud Service Providers (CSPs)?</p><p>Managing cloud entitlements has become a challenge for cybersecurity teams. This happens especially because of the increased number and complexity in multi cloud environments. In these environments, services and policies can be misconfigured and poorly defined.</p><p>According to Gartner, by 2024, organizations running cloud infrastructure services will suffer a minimum of 2,300 violations of least privilege policies, per account, every year.</p><p>senhasegura Cloud Entitlements help enterprises manage cloud access risks via administration-time controls for the governance of entitlements in hybrid and multi cloud IaaS.</p><h3>Do you know what “ Build With Us” is?</h3><p>We are inviting you to have first-hand access to our new cloud security platform and participate in our beta users program. If you are an Information Security professional with experience in IAM and wish to participate in the construction of an innovative project, come build with</p><p>JOINS US: <a href="https://senhasegura.com/build-with-us">https://senhasegura.com/build-with-us</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*A7Nhr_UfB5s-q3pV6bP-bg.png" /></figure><p><strong>What do I gain as a senhasegura beta user?</strong></p><p>● Free access to senhasegura Cloud Security <a href="https://senhasegura.com/cloud-infrastructure-entitlements-management/">— Cloud Entitlements</a> for one year, with no limit on the number of identities to manage.</p><p>● Opportunity to participate in online feedback with our team of Built-With-Us supporters to share their impressions and suggestions.</p><p>● Rich exchange of experiences with professionals in the IAM market about the challenges of managing identities in multi-cloud environments.</p><p>● Opportunity to permanently occupy a chair in our Innovation Committee, where we discuss problems and build solutions for the most diverse challenges in the security area — limited spaces!</p><p><strong>What will be your mission as a senhasegura beta user?</strong></p><p>● Co-creation: Giving feedback and proposing improvements that would make your day-to-day work easier.</p><p>● Confidence: Report bugs and experience problems found while using the product to gain maturity and quality of the solution.</p><p>● Practice: Carrying out specific tasks and procedures within the product to support us in building a specialist market solution.</p><p>● Innovation: Get first-hand pre-release updates to try before the stable release goes live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*RtsW2lvTk-Uj0VWs06FGag.png" /><figcaption>Source: demo console.</figcaption></figure><p>If you would like to be part of that, come to us and <strong>build with us.</strong></p><p><strong>References:</strong></p><p>● https://senhasegura.com/why-are-ciem-solutions-important/</p><p>● https://senhasegura.com/build-with-us-senhasegura/</p><p>● https://www.gartner.com/en/conferences/emea/infrastructure-operations-cloud-uk</p><p>● https://www.gartner.com/en/newsroom/press-releases/2022-11-21-gartner-highlights-ten-common-cloud-strategy-mistakes</p><p>● https://www.gartner.com/peer-community/poll/according-to-most-common-challenge-faced-cloud-adoption</p><p>● https://senhasegura.com/cloud-infrastructure-entitlements-management/</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79d1af3291c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Work from Home — Eu estou salvo?]]></title>
            <link>https://medium.com/coreshield/work-from-home-eu-estou-salvo-7f699719b04c?source=rss-7c5ea898d3fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f699719b04c</guid>
            <dc:creator><![CDATA[Filipi Pires]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 13:28:27 GMT</pubDate>
            <atom:updated>2020-08-12T13:44:05.513Z</atom:updated>
            <content:encoded><![CDATA[<h3>Work from Home — Eu estou salvo?</h3><h4><strong><em>Abstract</em></strong></h4><p><em>Atualmente, temos visto uma grande luta da humanidade contra o que conhecemos como COVID-19, uma pandemia invisível, que não sabemos de onde vem, onde se espalha e / ou como se espalhou tão rapidamente pelo mundo. Quando falamos do mundo cibernético, frequentemente lutamos com um “tipo de” inimigo semelhante. Frequentemente, não sabemos como esses artefatos maliciosos são criados, de onde eles vêm, que tipo de vacina seria importante conter esse tipo de “vírus” ou se já existe alguma vacina, mas desta vez vamos falar sobre algo que está conectado pela internet. Quando trabalhamos em uma empresa, muitas dessas empresas nos oferecem um conjunto de plataformas para trabalhar com segurança da informação, mas quando precisamos trabalhar em casa, como eu consigo aumentar meu nível de segurança? Como podemos estar seguros em casa, sem ter várias soluções de segurança? Ao longo deste artigo, mostraremos alguns tipos de ataques e vamos sugerir algumas ações que não dependem de soluções, para que possamos aumentar nosso nível de segurança neste período de pandemia.</em></p><p><em>Keywords: CyberSecurity, WorkFromHome, SecurityHome.</em></p><h3><strong>Introdução</strong></h3><p>O grande volume de informações que circulam sobre o novo coronavírus leva à existência de novos perigos, como a disseminação maciça de ataques de phishing; esse tipo de ataque que procura explorar a curiosidade ou neste caso, o medo social instalado sobre este vírus muitas vezes mortal.</p><p>O COVID-19 está sendo usado em uma variedade de campanhas maliciosas, incluindo spam por email, phishing, ransomwares, diferentes tipos de malware, sites maliciosos e domínios maliciosos. À medida que o número de pessoas afetadas continua crescendo em milhares e milhares, aumentam também as campanhas que usam a pandemia como isca.</p><p>Então, neste caso, como isso funciona?</p><p>Os cibercriminosos enviam e-mails dizendo ser de organizações legítimas com informações sobre o novo coronavírus.</p><p>As mensagens de email podem solicitar que você abra um anexo para visualizar as estatísticas mais recentes do surto. Ao clicar no anexo ou no link incorporado, você provavelmente estará baixando (muitas vezes sem o seu conhecimento) um software malicioso no seu dispositivo.</p><p>O software malicioso — Malware (Malicious Software) — pode permitir que os cibercriminosos assumam o controle do seu computador, acessando suas informações pessoais, podendo gravar informações digitadas ao vocês usar seu teclado e dados sensíveis, financeiros, entre outros, o que leva a situações de roubo de identidade.</p><p>Pesquisadores de empresas de segurança cibernética, como Trend Micro, Trustwave Holdings e Sophos, alertam para os tipos de estratégias usadas em phishing por e-mail que tiram vantagem do pânico de alguns usuários em relação ao surto do coronavírus (COVID-19). Os cibercriminosos personificam entidades como a Organização Mundial de Saúde (OMS) ou o Centro de Prevenção e Controle de Doenças da América do Norte (CDC), disseminando informações falsas e levando as vítimas a comprometer a segurança de seus dados e dispositivos pessoais.</p><h3>Tipos de Ameaças Usando COVID-19</h3><p>Quando falamos em Work From Home ou “Home Office”, sabemos que os usuários que geralmente estão conectados ao seu laptop pessoal acabam diminuindo a atenção com relação ao tema segurança cibernética, tornando-os presas fáceis para os invasores (Atacantes).</p><p>Neste artigo, falaremos sobre algumas formas de ataque usadas pelos atacantes com o objetivo de atacar pessoas que trabalham em casa e traremos algumas dicas para evitar ser atacado e ter nossos dados vazados.</p><p>Vamos os ataques mais comuns.</p><blockquote><strong>PHISING COM LINK MALICIOSO</strong></blockquote><p>Quando se trata de ataques cibernéticos, todas as pesquisas realizadas por empresas de segurança apontam esse como o principal vetor de entrada para empresas e usuários domésticos, que são ataques conhecidos como <strong><em>Phishing</em></strong>, esse ataque é uma tentativa fraudulenta de obter informações confidenciais, como usuário, senhas e detalhes do cartão de crédito, disfarçando-se como email ou pessoa de confiança na comunicação eletrônica. Geralmente realizado por falsificação de e-mail ou mensagem instantânea, geralmente direciona os usuários a inserir informações pessoais em um site falso, o que corresponde à aparência do site legítimo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*xwYPS7srP81AwzuVkpjRfA.png" /><figcaption>Figure 1: ²Trustwave Holdings (2020)</figcaption></figure><blockquote><strong>Quick Tip — Dica Rápida</strong></blockquote><p>A primeira recomendação para um usuário que recebe um email é sempre procurar quem é o remetente desta mensagem, localizar o email da pessoa que o enviou, essas informações estão localizadas após o<strong> “@”</strong>, observando o domínio da “pessoa” que enviou este email, agora você pode verificar se é um email potencialmente malicioso.</p><p>Uma segunda recomendação é verificar se existe algum <strong>URL </strong>no corpo do e-mail e, colocando o mouse sobre o “url”, podemos ver na parte inferior que ele mostra o site real que será conectado, e notando que são diferentes, observando a figura 1, podemos aprender que ele será redirecionado para outro site, não para o site verdadeiro, ou seja, outro sinal de que ele é potencialmente malicioso.</p><blockquote><strong>SPAM COM EXTENSÃO MALICIOSA</strong></blockquote><p>Quando olhamos o exemplo abaixo, quem está na área de Segurança já percebe que o arquivo anexado é um arquivo com extensão <strong><em>.dat</em></strong>, mas o que é exatamente um <strong>DAT</strong>?</p><p><strong>DAT </strong>é um arquivo de dados genérico criado por um aplicativo específico. Pode conter dados em formato binário ou de texto (os arquivos DAT baseados em texto podem ser visualizados em um editor de texto). Os arquivos DAT normalmente são acessados apenas pelo aplicativo que os criou, ou seja, esse DAT foi criado para executar algum aplicativo em sua máquina, ou seja, quase 100% dos quais teremos um arquivo malicioso sendo instalado em nosso equipamento ( no caso do exemplo abaixo).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*TIqvvE-CQXtTTcyvB2LdOQ.png" /><figcaption>Figure 2: <a href="https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/coronavirus-used-in-spam-malware-file-names-and-malicious-domains">https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/coronavirus-used-in-spam-malware-file-names-and-malicious-domains</a> (2020)</figcaption></figure><blockquote><strong>Quick Tip — Dica Rápida</strong></blockquote><p>Quando recebemos um email, precisamos examinar qual é a extensão do arquivo anexado, devemos ter cuidado com a extensão do tipo: <em>exe, bin, dat, cpl, etc</em>..</p><blockquote><strong>SPAM COM EXTENSÕES .DOC</strong></blockquote><p>Sabendo que as pessoas cada vez mais aprendem sobre segurança cibernética, os atacantes retornaram a trazer os ataques relacionados a Maldoc — “Malicious Document” (documento malicioso), ou seja, arquivos do tipo <strong>Word, Excel e PDF</strong>, com scripts incorporados maliciosos, às vezes dependendo de uma ativação de macro ou de uma ação de abertura de um PDF específico.</p><p>Algumas amostras de spams de e-mails direcionadas à Itália também foram detectadas pelos pesquisadores da Trend Micro¹. Desta vez, as menções da doença não foram encontradas nos assuntos do email, mas no URL. Em vez disso, o assunto continha a palavra “Fattura” (italiano para “fatura”) e também o corpo, o número da fatura e sua data prevista.</p><p>Os emails tinham anexos que continham malware, que executava um comando de PowerShell e então baixava um arquivo de uma URL relacionada ao COVID-19.</p><p>O URL é hxxps: //recoverrryasitalycovid-19.xyz/over.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*A5YWNCcY2fuLoF0uWe8VEA.png" /><figcaption>Figure 3: ¹ Trend Micro Company (2020)</figcaption></figure><blockquote><strong>Quick Tip — Dica Rápida</strong></blockquote><p>Quando você recebe um email com um documento anexado, como <strong>.doc, .xls, PDF</strong>, entre outros, localize o remetente do email e valide se esse email faz sentido ter sido enviado a você.</p><p>Outra recomendação é que, se um Word, Excel, PDF, entre outros o redirecionar para um site, ele certamente é suspeito e não deve ser clicado, e você nunca deve inserir seus dados pessoais em nenhum desses sites maliciosos.</p><blockquote><strong>ATAQUE MOBILE por SMS</strong></blockquote><p>Outros exemplos que vemos estão vinculados ao enviado de SMS, com foco no roubo de informações, onde o usuário acessa muitas informações pelo celular.</p><p>Muitos usuários receberam SMS no celular, com informações relacionadas ao Covid-19, como podemos ver, com um link que “daria” acesso a sintomas e outras informações, e no outro exemplo, vemos os ataques tirando proveito da situação financeira, atualmente muitos países forneceram algum tipo de auxílio, neste período de crise, solicitando acesso a um site “falso”, onde o invasor coleta todas as informações privadas do usuário.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*bjgATvyCzw6k_Thtg6VZhg.png" /><figcaption>Figure 4: Google images (2020)</figcaption></figure><blockquote><strong>Quick Tip — Dica Rápida</strong></blockquote><p>Sempre tenha cuidado com qualquer SMS recebido por um número desconhecido, sempre valide quem é o remetente desta mensagem. Além disso, a OMS já emitiu uma declaração que alerta a população sobre o uso de seu nome e imagem em esquemas fraudulentos, seja por email , por SMS ou mesmo por ligação telefonica. A organização esclarece em seu site que nunca solicita ao público que insira credenciais de acesso para poder acessar informações ou visitar um endereço fora de sua rede de páginas.</p><h3>Conclusão</h3><p>Neste artigo, vimos como é desafiador trabalhar em um ambiente diferente ao qual estamos acostumados. Trabalhar em casa tem suas vantagens, mas quando falamos sobre o cenário de crime cibernético, ele se torna um pouco mais complexo, principalmente para quem não trabalha com segurança cibernética.</p><p>Nosso inimigo é totalmente invisível, lutamos contra um tipo de atacante que geralmente está um passo à frente. Frequentemente, não sabemos como esses artefatos maliciosos são criados, de onde eles vêm, que tipo de vacina seria importante para conter esse tipo de “vírus”.</p><p>Ao longo deste artigo, vimos que, quando recebemos um email, devemos procurar quem é o remetente desta mensagem, quando examinamos o domínio da “pessoa” que nos enviou esse email, agora podemos verificar se é um email potencialmente malicioso.</p><p>Devemos observar o tipo de extensão anexada ao email, se for um executável, binário, Word, PDF, entre outros, precisamos ter muito cuidado ao abrir todos os tipos de arquivos.</p><p>Vimos que os atacantes usaram muitas mensagens por SMS para também coletar informações de suas vítimas.</p><p>Como resultado, esperamos que você possa aumentar um pouco seu nível de segurança neste período de pandemia.</p><p><strong>Referências</strong></p><p>¹https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/coronavirus-used-in-spam-malware-file-names-and-malicious-domains; <br>²https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/multiple-phishing-attacks-discovered-using-the-coronavirus-theme/; <br><a href="https://apav.pt/apav_v3/index.php/pt/2278-covid-19-como-se-proteger-das-burlas-e-mails-de-phishing">https://apav.pt/apav_v3/index.php/pt/2278-covid-19-como-se-proteger-das-burlas-e-mails-de-phishing;</a> <br><a href="https://tek.sapo.pt/noticias/internet/artigos/hackers-aproveitam-se-do-panico-em-torno-do-covid-19-para-lancar-uma-nova-vaga-de-phishing.">https://tek.sapo.pt/noticias/internet/artigos/hackers-aproveitam-se-do-panico-em-torno-do-covid-19-para-lancar-uma-nova-vaga-de-phishing.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f699719b04c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreshield/work-from-home-eu-estou-salvo-7f699719b04c">Work from Home — Eu estou salvo?</a> was originally published in <a href="https://medium.com/coreshield">CoreShield</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis | Dissecting PDF file]]></title>
            <link>https://medium.com/coreshield/malware-analysis-dissecting-pdf-file-a95a0ffa0dce?source=rss-7c5ea898d3fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a95a0ffa0dce</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[maldoc]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Filipi Pires]]></dc:creator>
            <pubDate>Thu, 07 May 2020 12:45:13 GMT</pubDate>
            <atom:updated>2020-05-07T12:54:35.950Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Abstract</strong></h4><p><em>There are a large number of cyber threats today, many of these cyber threats can be based on malicious code, one of this code is known as Malware (Malicious Software or maldoc — Malicious Document ) to refer these kind of threats. The term Malware, is a generic term that covers all types of programs specifically developed to perform malicious actions on a computer, thus the term malware has become the name for any type of program specifically developed to perform harmful actions and malicious activities on a compromised system. <br>This paper presents an in-depth security analysis of the PDF features and capabilities, independently from any vulnerability. The aim is to exhaustively explore and evaluate the risk attached to PDF language-based malware which could successfully using different techniques in malware-based in PDF embedded. You’ll have the experience of understanding different kind of structures in the binaries as PDF such as header/ body/cross-reference table/trailer, explaining how each session works within a binary, what are the techniques used such as obfuscation, encodings with JavaScript (PDF) and more, demonstrating as a is the action of these malwares and where it would be possible to “include” a malicious code. By the end of this article it will be clear to everyone, how we got find C&amp;C ( Command Control) in binaries structures, how can the researcher should conduct each of these kind of analyses, it should seek more basic knowledge, with file structures, software architecture and programming language</em></p><p><em>*Keywords: MalwareAnalysis, Maldoc, MaliciousPDF*</em></p><h4>Introduction</h4><p>Over the past few years, different technologies have been developed to provide cybersecurity, however, when you look at incident indicators from different sources, you see that the number of incidents within information technology grows every year, always motivated by different types of threat using different kind of artifacts.<br> <br>Due to the large number of these artifacts, some organizations and security companies use automated or semi-automated analysis methods. Knowing how malicious code works is the basis for producing efficient detection and protection tools, as it allows you to know the context that the malware intends to reach, understanding the target audience of the threat, the information collected, the use and the destination of this malware.<br> <br>However, the time to find the defenses has not been consistent with the current attack scenario, which is extremely unfavorable for the end user. With this motivation, researchers have shown themselves willing to face the problem and confident in proposing solutions that make the processes, both of analysis and detection, efficient and reliable.<br> <br>It is worth noting that, in cases involving financial fraud and identity theft, knowing the performance of the malware is paramount to eradicate the incident. The simple discovery of malicious codes may suggest a preventive action in relation, for example, to prevent a user from having access to a system, as it is not possible to guarantee that that user is correctly recognized, as the compromise of his identification information does risk of fraud becoming high.<br> <br>A major problem faced in these situations is to determine the type of compromise, that is, to identify the real ability that malware has to capture information. This factor determines the response time that the organization and security companies have to produce a malware recognition signature.<br> <br>Artifact analysis has different applications, it can be used to help understand a particular artifact, be it malware or maldoc that was identified in an incident, or that was received via phishing or even sent by someone to some security research group to evaluate.<br> <br>The analysis of the artifact is a necessary process to build intelligence on cyber threats, because through this intelligence it is possible to evaluate the effectiveness of security controls, whether they are methodological or based on some tool. This continuous improvement approach based on built intelligence is what really makes it possible to increase cyber resilience.<br>When we talk about Malware Analysis, we can say that they are based on two forms of analysis, known as Static Analysis and Dynamic Analysis.</p><p>We begin our exploration of malware analysis with <strong>“Static Analysis”</strong>, which is often the first step in malware studies.</p><p><strong>Static analysis</strong> describes the process of analyzing a program’s code or structure to determine its function. The program itself doesn’t run at this time (depending on the program), this makes the parsing process more “safe” , because we aren’t actually executing it.</p><p><strong>Dynamic analysis</strong> is based solely on behavior, ie the interaction that malware has when it is executed or a maldoc is used, also known as <strong>“runtime”</strong> analysis. It can be easily automated, there are sites today that already perform analysis of malicious artifacts, using the concept called <strong>“sandbox”</strong></p><p>It generates information that may help to understand the cyber threat in question, promoting the generation of intelligence from a heuristic that allows the identification of the artifact, increasing the effectiveness of detection.</p><p><strong><em>Important</em></strong><em> to note is that none is better or worse than another and are totally complementary, in some cases using the dynamic approach to prove or cast doubt on what has been found with static analysis is very useful.</em></p><p>=======================================</p><h4>Introduction for PDF File</h4><p>PDF (Portable Document Format) is a file format, developed by Adobe Systems in 1993, to represent documents independently of the application, hardware and operating system used to create them.</p><p>A PDF file can describe documents that contain text, graphics and images in a device-independent format and resolution. A PDF document can be defined as a collection of objects which describe how one or more pages must be displayed.</p><p>This collection of objects can also consider additional interactive components and application data at a higher level.</p><p>In general, a PDF document consists of four main parts.<br> 1. One-line header ou Header<br> 2. Body <br> 3. Cross-reference table <br> 4. Trailer</p><p>What I describe here is the physical structure of a PDF file. The header identifies that this is a PDF file (specifying the PDF file format version), the trailer points to the cross reference table (starting at byte position 642 into the file), and the cross reference table points to each object (1 to 7) in the file (byte positions 12 through 518).</p><p>The objects are ordered in the file: 1, 2, 3, 4, 5, 6 and 7.</p><p>The logical structure of a PDF file is a hierarchical structure, the root object is identified in the trailer. <br>Object 1 is the root, object 2 and 3 are children of object 1, etc, as you can see below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*4BWysJoo8VCzFOJuL0CD0g.png" /><figcaption><a href="https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/">https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/</a> (2020)</figcaption></figure><p>=======================================</p><h4>Header identification</h4><p>As we saw earlier, that we can see in PDF files is to look at its <strong>header</strong> information. The first line of the PDF specifies the version of a PDF file format. These headers are the topmost portion of a document. It reveals the basic information of a PDF file, for example, “%PDF-1.3”, it means that this PDF format is the third version. By the way, to read a PDF, you need a later version of PDF reader, i.e. you have to download Adobe Acrobat 4.0 to view %PDF-1.3, you can find this information using “strings” commands or using one of tools development by Didier Stevens like PDFID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*V1lgDc_b1Njh-G1jVdZ21w.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>PDFiD will scan a PDF document for a given list of strings and count the occurrences (total and obfuscated) allowing you to identify PDF documents that contain (for example) JavaScript and/or execute an action when opened. PDFiD will also handle name obfuscation. The idea is to use this tool first to triage PDF documents, and then analyze the suspicious ones with other tool the name pdf-parser, as you can see, this tool shows many relevant information.</p><p>Almost every PDF documents will contain the first 7 words as you can see in the picture above(<strong>obj</strong> through <strong>startxref</strong>), and to a lesser extent stream and endstream. Something very interesting within this tool is that we can see the use of “<strong>/ (slash)</strong>” to show information that is located within the objects of a PDF, as you can see below:</p><p><strong>/Page </strong>gives an indication of the number of pages in the PDF document. Most malicious PDF document have only one page.</p><p><strong>/Encrypt</strong> indicates that the PDF document has DRM or needs a password to be read.</p><p><strong>/ObjStm</strong> counts the number of object streams. An object stream is a stream object that can contain other objects, and can therefor be used to obfuscate objects (by using different filters).</p><p><strong>/JS</strong> and <strong>/JavaScript</strong> indicate that the PDF document contains JavaScript. Almost all malicious PDF documents that I’ve found in the wild contain JavaScript (to exploit a JavaScript vulnerability and/or to execute a heap spray). Of course, you can also find JavaScript in PDF documents without malicious intent.</p><p><strong>/AA</strong> and <strong>/OpenAction</strong> indicate an automatic action to be performed when the page/document is viewed. All malicious PDF documents with JavaScript I’ve seen in the wild had an automatic action to launch the JavaScript without user interaction.</p><p><strong>The combination of automatic action and JavaScript makes a PDF document very suspicious</strong></p><p><strong>/JBIG2Decode</strong> indicates if the PDF document uses JBIG2 compression. This is not necessarily and indication of a malicious PDF document, but requires further investigation.</p><p><strong>/RichMedia</strong> is for embedded Flash.</p><p><strong>/Launch</strong> counts launch actions.</p><p><strong>/XFA</strong> is for XML Forms Architecture.</p><p>When we look at the response of the command, we can see that it returns with the information of 5 JavaScript inside that PDF, it looks at least suspicious, don’t you think?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*KbyS9uac4K_k9BDVmHIWlA.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Another point very interesting is the we can find one Open Action within the PDF, which means, indicate an automatic action to be performed when the page/document is viewed. All malicious PDF documents with JavaScript, I’ve seen in the wild had an automatic action to launch the JavaScript without user interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*KAM0-N9CnsbNhdraJZOTZQ.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>=======================================</p><h4>Technical Analysis</h4><p>The body of a PDF file consists of objects that compose the contents of the document. These objects include image data, fonts, annotations, text streams and so on. You can also make the content of a PDF document more secure by implementing security features. Users can also integrate invisible objects or elements. These objects embed the interactive features in a document like animation or graphics. A user can also implement logical structure in the document. One can protect the content of a document from unauthorized printing, viewing, editing or modifying. The body of a PDF also supports two types of numbers called integers and real numbers.</p><p>I used the PDF-PARSER another tool developed by Didier Stevens, this tool will parse a PDF document to identify the fundamental elements used in the analyzed file. It will not render a PDF document. The code of the parser is quick-and-dirty. This tool can print many information interesting, the filter option applies the filter(s) to the stream. For the moment, only FlateDecode is supported (e.g. zlib decompression).</p><p>One the options that I like is — raw option makes pdf-parser output raw data (e.g. not the printable Python representation). The Objects outputs the data of the indirect object which ID was specified; This ID is not version dependent, If more than one object have the same ID (disregarding the version), all these objects will be outputted. Reference allows you to select all objects referencing the specified indirect object. This ID is not version dependent. Type allows you to select all objects of a given type. The type is a Name and as such is case-sensitive and must start with a slash-character (/).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*r_YWd3hrObo-HW3rgZZSqQ.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>So, let’s go step by step to understand each structure and try to find JavaScript (possibly malicious) within that PDF. The <strong>Obj 1</strong> is referencing <strong>Obj 02, 03, 04, 05, 07,</strong> Object 1 is the <strong>root</strong>, object 2 and 3 are children and so on, this information is contained in the Trailer structure as mention before. Looking the all objects within the PDF we can find another reference, the <strong>Obj 7</strong> referencing <strong>Obj 10</strong> and as we can see contain a <strong><em>JavaScript</em></strong>, we can see below too, that <strong>Obj 09</strong> that it was referenced by Obj 04, is referencing <strong>Obj 08</strong> and <strong>Obj 11</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*O14cy_EBrdCnKQcRJAdaaw.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Looking more deeply at all this information that is contained within the body of a PDF, it arrived at a fundamental and very interesting point of the Analysis of a PDF, we were finally able to find a stream within 2 objects.</p><p><strong>Obj 11 </strong>contains stream with size length 36, and the <strong>Obj 12</strong> referencing <strong>Obj 13 </strong>with JavaScript, and this obj we found another <strong>Contain Stream</strong>, but in this case the size is major than first (length 3151).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*KlN8MAxqyNHwYeGhgPtJJw.png" /><figcaption>Created by owner (2020)</figcaption></figure><blockquote><strong>Command $ pdftk CV.pdf output dump.txt uncompress</strong></blockquote><p>When we look inside the stream we can see that inside the stream there is a code that is obfuscated in <em>javascript </em>and now what we needed is to use some techniques to perform the desobfuscation of this code in a way that is visible and understandable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*zRTO1nM1-S1sto_h2bTsEw.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Looking at the code that is obfuscated, we managed to find an eval parameter inside the code, with that, we decided to rewrite it in html, to try to print the code in the webpage, basically we rewrote the EVAL parameters, look that we found in the image below when we execute this link in a browser.</p><blockquote><strong>Editing file &lt;script&gt;&lt;html&gt;A=………….;document.write(A);&lt;/script&gt;&lt;/html&gt;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*MKzNhA8lfXDejtPptswR8w.png" /><figcaption>Created by owner (2020)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*NNCs-h59QhA0Ps-N8u0U2g.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>As we can see that a <strong>JavaScript obfuscation</strong> technique was used to hide a payload that would be downloaded on the victim’s machine, and obviously it would be exploiting a vulnerability for this exploit to be downloaded and through that payload, it was possible for the victim to communicate and the C&amp;C of the attack that created this maldoc, now we can see that this PDF has a lot of malicious instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*wQiKkX9zv3yKxuXvVuTP4g.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Seeing that there was a payload, I could see that I could try to go deeper in the analysis to try to find the attacker’s C&amp;C, looking at the code printed in the browser it is possible to notice that there is one more technique to hide this information the called Encoding using Unicode.</p><p>Unicode is a character encoding standard that has widespread acceptance. Microsoft software uses Unicode at its core. Whether you realize it or not, you are using Unicode already! <br><strong>Basically, “computers just deal with numbers.¹</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*hlCIKEOWocNuKIG25sTEFw.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Another way to find this information is using a tool called Mallzila for Windows platform, MalZilla is a useful program for use in exploring malicious pages. It allows you to choose your own user agent and referrer, and has the ability to use proxies. It shows you the full source of webpages and all the HTTP headers. It gives you various decoders to try and deobfuscate javascript as well. To find information in Mallzill it’s necessary convert UCS2 to text, but who is UCS-2?</p><blockquote>UCS-2 is a character encoding standard in which characters are represented by a fixed-length 16 bits (2 bytes). It is used as a fallback on many GSM networks when a message cannot be encoded using GSM-7 or when a language requires more than 128 characters to be rendered and The Universal Coded Character Set (UCS) is a standard set of characters defined by the International Standard ISO/IEC 10646, Information technology — Universal Coded Character Set (UCS) (plus amendments to that standard), which is the basis of many character encodings. <br>*The latest version contains over 136,000 abstract characters, each identified by an unambiguous name and an integer number called its code point. This ISO/IEC 10646 standard is maintained in conjunction with The Unicode Standard (“Unicode”), and they are code-for-code identical. <strong>²</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*cYoVN9jOjQNlAQ5dN-2FSw.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Using the <strong>Malzilla</strong> we can generate a binary with this information that are contained and encoded within this code. Now we just need some tool to help us finally reach C&amp;C using the attacker. One of the tools that can be use is XORSearch (Created by Didier Stevens), that is a program to search for a given string in an XOR, ROL, ROT or SHIFT encoded binary file.</p><p>An XOR encoded binary file is a file where some (or all) bytes have been XORed with a constant value (the key). A ROL (or ROR) encoded file has its bytes rotated by a certain number of bits (the key). A ROT encoded file has its alphabetic characters (A-Z and a-z) rotated by a certain number of positions.</p><p>A SHIFT encoded file has its bytes shifted left by a certain number of bits (the key): all bits of the first byte shift left, the MSB of the second byte becomes the LSB of the first byte, all bits of the second byte shift left, … XOR and ROL/ROR encoding is used by malware programmers to obfuscate strings like URLs, That said, we can understand that through XORSearch we can search for strings like URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*pvWn9oV3y2Xe9-BylRygFg.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>Baum, Now we finally have the <strong>C&amp;C</strong> that it was responsible to receive all the <strong>IP victims — 92.62.100.66</strong>, Of course, if we try to access this site today, the server is already down, and probably the attacker must have used the TOR network to carry out this attack and this was probably the last hop that he used, this IP it is located on <strong>Estonia — Europe</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*uSb4WwTtAed7dWbHHl14og.png" /><figcaption>Created by owner (2020)</figcaption></figure><p>=======================================</p><h4><strong>PoC in Video</strong></h4><p>In this video below, We can see all these steps executed in this paper.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F403396226%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F403396226&amp;image=http%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F872846021_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/25e05775c728cab82665f5714ed4f441/href">https://medium.com/media/25e05775c728cab82665f5714ed4f441/href</a></iframe><p>=======================================</p><h4>Conclusions</h4><p>In this paper we went through all the steps to understand what the structures of a PDF file are like, How one structure is linked to another, we also checked the techniques that were applied by the attacker in this Maldoc, such as obfuscation and encoding.</p><p>Malicious PDF files recently considered one of the most dangerous threats to the system security. The flexible code-bearing vector of the PDF format enables to attacker to carry out malicious code on the computer system for user exploitation</p><p>I invite you to seek to understand well these first steps that are very important for building knowledge of this content understanding the differences for Statistical Analysis and Dynamic Analysis, executing commands manually, understanding how this command works or why and how it was created, observing how the tools work and who knows how to also create our own tools based on the knowledge of the tools that already exist and of course, after that comes what we call Reverse Engineering a much more complex subject.</p><p>We now intend to explore further the risk attached to PDF, Because as we saw in this paper, there are some ways and techniques to hide code in several parts within a PDF, and finally we need bases in programming language, so we need to learn more, so we will understand a little how malwares are created.</p><p>=======================================</p><h4>Publications</h4><ul><li><a href="https://pentestmag.com/product/pentest-fuzzing-techniques/">PenTest: Fuzzing Techniques - Pentestmag</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6658688388310401024/">The Cyber Security Hub™ posted on LinkedIn</a></li><li><a href="https://github.com/filipi86/MalwareAnalysis-in-PDF/blob/master/README.md">filipi86/MalwareAnalysis-in-PDF</a></li></ul><p>=======================================</p><h4>References</h4><p><a href="http://www.simpopdf.com/resource/pdf-file-structure.html">http://www.simpopdf.com/resource/pdf-file-structure.html</a> — Access at 19/03/2020<br><a href="https://resources.infosecinstitute.com/pdf-file-format-basic-structure/#gref">https://resources.infosecinstitute.com/pdf-file-format-basic-structure/#gref</a> — Access at 18/03/2020<br><a href="https://blog.didierstevens.com/programs/pdf-tools/">https://blog.didierstevens.com/programs/pdf-tools/</a> — Access at 18/03/2020<br><a href="https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/">https://blog.didierstevens.com/2008/04/09/quickpost-about-the-physical-and-logical-structure-of-pdf-files/</a> — Access at 19/03/2020<br><a href="https://blog.didierstevens.com/2008/04/08/quickpost-back-from-black-hat-europe-2008/">https://blog.didierstevens.com/2008/04/08/quickpost-back-from-black-hat-europe-2008/</a> — Access at 19/01/2020<br><a href="https://resources.malwarebytes.com/files/2020/02/2020_State-of-Malware-Report.pdf">https://resources.malwarebytes.com/files/2020/02/2020_State-of-Malware-Report.pdf</a> — Access at 19/03/2020<br><a href="https://www.forbes.com/sites/zakdoffman/2019/10/05/critical-pdf-warning-new-threats-leave-millions-at-riskupdate-all-pdf-apps-now/#dd6b229739d7">https://www.forbes.com/sites/zakdoffman/2019/10/05/critical-pdf-warning-new-threats-leave-millions-at-riskupdate-all-pdf-apps-now/#dd6b229739d7</a> — Access at 19/01/2020<br>¹ <a href="https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=UTConvertQ1">https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;id=UTConvertQ1</a> — Access at 19/01/2020<br>² <a href="https://en.wikipedia.org/wiki/UniversaCodedCharacterSet">https://en.wikipedia.org/wiki/UniversaCodedCharacterSet</a> — Access at 19/01/2020</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a95a0ffa0dce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreshield/malware-analysis-dissecting-pdf-file-a95a0ffa0dce">Malware Analysis | Dissecting PDF file</a> was originally published in <a href="https://medium.com/coreshield">CoreShield</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Router Exploiting]]></title>
            <link>https://medium.com/coreshield/router-exploiting-6ddd0aed2ddf?source=rss-7c5ea898d3fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ddd0aed2ddf</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[router-exploitation]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Filipi Pires]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 11:45:57 GMT</pubDate>
            <atom:updated>2020-05-22T20:39:31.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploiting <strong>Connect Box EuroDOCSIS 3.0</strong></h3><h3><strong>Abstract</strong></h3><p><em>Nowadays, routers are an integral part of today’s home and small office networks. Usually, these kind of devices are implemented in many places with default configuration and are, typically, managed by people who do not have any special technical knowledge. Often poorly configured and vulnerable, such devices are an easy target for network-based attacks, allowing cyber-criminals to quickly and easily gain control over a network. I bet you heard the latest news about the “Infected 500,000 Devices That Could Cut Users Off From The Internet”. Over Half a Million Routers Infected by Destructive VPNFilter Malware. In this article we explain how to get admin credentials the in Connect Box DOCSIS 3.0 Voice Gateway router it was possible sniffing the HTTP traffic packets, within the same tested network, and perform some tests it is possible discover a vulnerability in the authentication process known as Cleartext Transmission of Sensitive Information. This router that has been tested is in Poland by the internet service provider UPC. This company provides services in many EU countries. This flaw it is register in through CVE — CVE-2019–19967 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19967) and according </em><strong><em>National Vulnerability Database-NVD</em></strong><em> this vulnerability has been signed by basescore : 7.5 high (https://nvd.nist.gov/vuln/detail/CVE-2019-19967).</em></p><p><em>Keywords: Router Exploitation, Security, CyberSecurity.</em></p><h3>Connect Box — UPC Router</h3><p>The Connect Box is the worldwide most compact EuroDOCSIS 3.0 Voice Gateway which provides the ideal all-in-one wired and wireless solution, designed for your home, home office, or small business/enterprise. It can be used in households with one or more computers capable of wireless connectivity for remote access to the wireless gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/138/1*Erig99nmzH_hX6WB4v6AhQ.png" /><figcaption>Source: google images</figcaption></figure><p>The purpose of this exploration is to validate the security applied to the standard implementation of the router, as well as to guarantee the application of the main security models, whether in a home user or in a corporate environment.</p><p>We performed this proof of concept to get obtain the administrator credentials of the Connect Box DOCSIS 3.0 Voice Gateway router, it was possible to successfully perform, when sniffing the HTTP traffic packets, within the same tested network, when we perform some tests we discover a vulnerability in this router in the Authentication process known as <strong>Cleartext Transmission of Sensitive Information.</strong></p><p>After discovering this flaw, we communicated the manufacturer about it, which put us in contact with the development team to assist in the improvement process, we also registered this failure through CVE — CVE-2019–19967 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19967)</p><p>This router that has been tested is in Poland by the internet service provider UPC. This company provides services in many EU countries.</p><h3>Understanding Authentication Process</h3><p>The first step in this kind of exploration is to understand how the application handles with the authentication process, as well as, the responses that are “<em>printed</em>” on the authentication page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*Ig5-Zv611jNe6p093TzNMA.png" /><figcaption>Figure 1: created by owner (2020)</figcaption></figure><p>When put this information in the application (tried “<em>admin</em>” access), we received the error return, as you can see in figure 1, but the text in the box, doesn’t in password for, after that, as you can see in the in figure 2, about the input form it is with <em>type</em> as “text”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*A5h28uvJV6z7NKVG6gamxQ.png" /><figcaption>Figure 2: created by owner (2020)</figcaption></figure><p>In this case, a recommendation it is use in the input form to this authentication input <strong>type=password</strong>, as you can see in the figure 3. However, this would be just a visual protection, we still can’t know how the password treatment is done, when and how authentication is performed, for that we need to use some network sniffer to check how this request and return authentication works in the network communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*LLFcesxoUxuB2P17ZzdsHQ.png" /><figcaption>Figure 3: created by owner (2020)</figcaption></figure><h3><strong>Looking Network Communication</strong></h3><p>I have been used the attacker machine with the <strong>IP Address: 192.168.0.45</strong> to run the <strong>Wireshark</strong> and received all traffic the network, after that I’ve used victim machine — <strong>Victim 1–192.168.0.80</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*dhttEfeLnHqhmM0X6v2tUQ.png" /><figcaption>Figure 5: <strong>Victim Machine</strong> <br> created by owner (2020)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*EDr1F6gYq9doPeGBRfdAuQ.png" /><figcaption>Figure 5: <strong>Attacker Machine</strong> <br> created by owner (2020)</figcaption></figure><h3><strong>Wireshark Analysis.</strong></h3><p>We tried to access with the password “<em>admin</em>”, however we receive the “login incorrect” information printed in the web page, so we went to see how Wireshark received this Authentication, my intention here, it was to discovery, what kind of encryption for authentication the application have used, but for my surprise, as you can see in the figure 6, the authentication not use none encrypt process the password is pass in the network in clear text, in this case we can to think about vulnerability known by MITRE as <strong>Cleartext Transmission of Sensitive Information</strong> (<a href="http://cwe.mitre.org/data/definitions/319.html).">http://cwe.mitre.org/data/definitions/319.html)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*er5_2ZxvI9XTmpvWLcFWGQ.png" /><figcaption>Figure 6: created by owner (2020)</figcaption></figure><p>So now, we just need to receive a valid authentication, when you try to connect with your correct password, just be happy, because the Admin Authentication, it will be in ClearText, for anyone that is receiving network traffic in the same network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*4ptf-UqnI6ESZkjMFSrBsg.png" /><figcaption>Figure 7: created by owner (2020)</figcaption></figure><p>Another important poins is, If an attacker has access on this pcap file in other machine, as you can see in windows machine below (figure 8), when this attacker opens in the Wireshark and he starts to analyze this file, we can see the same behavior in authentication process in clear text without simple protection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*Yfy8WrGEO3Jso5q3nuhSUg.png" /><figcaption>Figure 8: created by owner (2020)</figcaption></figure><h3><strong>Conclusion</strong></h3><p>As we can see in this article, a simple cryptographic flaw in the process of web page authentication, can greatly compromise the security of a home user when a company that use this router, this vulnerability it is known as the software transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actor and it was signed as CVE-2019–19967 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19967)</p><p>You can configure a web application with some type of hidden, encoded, protection, or then some authentication with encryption, or based on some token, so there are many ways to increase the security level of your router.</p><p>So, I recommend reading some RFC — HTTP Hypertext Transfer Protocol, to understand the operation, as well as ways of protection.</p><h3>Publications</h3><ul><li><a href="https://pentestmag.com/product/pentest-build-your-own-pentest-lab-in-2020/">PenTest: Build Your Own Pentest Lab in 2020</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6633366352042307585/">The Cyber Security Hub™ posted on LinkedIn</a></li><li><a href="https://github.com/filipi86/ConnectBoxDOCSIS-3.0">filipi86/ConnectBoxDOCSIS-3.0</a></li></ul><h3><strong>References</strong></h3><p><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19967">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19967</a> — Access at 16/01/2020 <br><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-19967">https://nvd.nist.gov/vuln/detail/CVE-2019-19967</a> — Access at 27/08/2020<br><a href="https://github.com/filipi86/ConnectBoxDOCSIS-3.0">https://github.com/filipi86/ConnectBoxDOCSIS-3.0</a> — Access at 16/01/2020<br>RFC 2660 — <a href="https://tools.ietf.org/html/rfc2660">https://tools.ietf.org/html/rfc2660</a> — Access at 16/01/2020<br>RFC 7231 — <a href="https://tools.ietf.org/html/rfc7231">https://tools.ietf.org/html/rfc7231</a> — Access at 16/01/2020<br>RFC 2818 — <a href="https://tools.ietf.org/html/rfc2818">https://tools.ietf.org/html/rfc2818</a> — Access at 16/01/2020<br>RFC 2612 — <a href="https://tools.ietf.org/html/rfc2616">https://tools.ietf.org/html/rfc2616</a> — Access at 16/01/2020<br><a href="http://cwe.mitre.org/data/definitions/319.html">http://cwe.mitre.org/data/definitions/319.html</a> — Acess at 27/01/2020<br>Official Document form UPC — <a href="https://www.upc.ch/pdf/support/manuals/en/internet/ConnectBox/connect-box-manual.pdf">https://www.upc.ch/pdf/support/manuals/en/internet/ConnectBox/connect-box-manual.pdf</a> — Access at 16/01/2020</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ddd0aed2ddf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coreshield/router-exploiting-6ddd0aed2ddf">Router Exploiting</a> was originally published in <a href="https://medium.com/coreshield">CoreShield</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>