<?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 cosmin ciobanu on Medium]]></title>
        <description><![CDATA[Stories by cosmin ciobanu on Medium]]></description>
        <link>https://medium.com/@cosmin.ciobanu?source=rss-10d7a1468fc3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3AOb_Mfu8mGV8ywo.</url>
            <title>Stories by cosmin ciobanu on Medium</title>
            <link>https://medium.com/@cosmin.ciobanu?source=rss-10d7a1468fc3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 13:07:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cosmin.ciobanu/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[Enhanced endpoint detection using Sysmon and WEF]]></title>
            <link>https://medium.com/@cosmin.ciobanu/enhanced-endpoint-detection-using-sysmon-and-wef-3b65d491ff95?source=rss-10d7a1468fc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b65d491ff95</guid>
            <category><![CDATA[sysmon]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[event-logs]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[cosmin ciobanu]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 08:17:35 GMT</pubDate>
            <atom:updated>2019-01-25T08:17:35.650Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I will try to explain how to to forward the Sysmon logs to a collector server using the WEF built-in mechanism (Windows Event Forwarding). The assumption of this article is that Sysmon was already deployed on the client PCs with a tailored configuration via GPO or SCCM.</p><p>While there are many articles on this topic, some of the configuration elements are a bit counter intuitive or misunderstood. My goal is to thoroughly explain the entire setup and configuration and make it easier to understand for everyone.</p><h4>My Setup</h4><ol><li>Windows Server 2012R2 — Domain controller</li><li>Windows Server 2012R2 — Collector (Domain member)</li><li>Windows 10 —Client computer (Domain member)</li></ol><h4>Collector server configuration</h4><p><strong>Manual</strong></p><ol><li>Log into the collector server and open an admin command prompt.</li><li>Run the command: <strong>wecutil qc</strong> (quick-config) and then press Y.</li><li>Type <strong>services.msc</strong> in the cmd prompt, select the WinRM (Windows Remote Management) service and chose Start-up Type -&gt; Automatic.</li></ol><p>The powershell command equivalent is:</p><p><strong>Set-Service -Name WINRM -StartupType Automatic</strong></p><p><strong>Using GPO</strong></p><blockquote>Computer Configuration -&gt; Policies -&gt; Windows settings -&gt; System Services</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*Vn96qkpwpwVwJxiQsf_WsQ.png" /></figure><p>Select ‘Automatic’ startup mode live below and do the same for Windows Event Collector service:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*lm43YpoRyx88u0DHQTaJoQ.png" /></figure><p>The client computers will send logs to the collector, hence the need to open inbound port 5985/tcp on the collector:</p><blockquote>Computer Configuration -&gt; Policies -&gt; Windows settings -&gt; Security settings -&gt;Windows Firewall with Advanced Security</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*WryH09eulXXp_NCUq3VbMw.png" /></figure><p><strong>Creating a subscription on the collector</strong></p><p>Log in into the collector server and open Event Viewer , right click on <strong>Subscriptions -&gt; New subscription.</strong></p><p>Select the <strong>Destination log</strong> -&gt; Forwarded Events (typical choice)</p><p>Select <strong>Source computer initiated</strong> -&gt; <strong>Select the computer groups</strong> (Domain Computers) in our case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VVIaPwk3_cpc2Ypz-z-_kg.png" /></figure><p>Note: The safest option is to have Source Computer Initiated events. We don’t want high privileged domain accounts connecting to the endpoints.</p><p><strong>Sending Sysmon event logs:</strong></p><p><strong>Select events → Click on the XML Tab and add the following XML for Sysmon subscription:</strong></p><blockquote>&lt;QueryList&gt;&lt;Query Id=”0&quot; Path=”Microsoft-Windows-Sysmon/Operational”&gt;&lt;Select Path=”Microsoft-Windows-Sysmon/Operational”&gt;*&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmjregd5TZ5rtSMCzNsYOA.png" /></figure><h4>Client computer configuration using GPO</h4><p>Below are the steps required to define the specific group policy:</p><ol><li>Add the ‘Network Service’ principal to the Event Log reader group.</li></ol><p>We need to grant permissions to the ‘Network Service’ account to read the event logs. It’s possible to achieve this by adding the “NT Authority\Network Service” principal to the “Event log readers” group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*4Pu1xrdu_pIUNOIxAprPbA.png" /></figure><p>Verifying the configuration:</p><p>Run the command: <strong><em>net localgroup “Event Log Readers”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*B9pcJmDMDiPmMWpN6nWtig.png" /></figure><p>2. Configure the subscription manager</p><blockquote><em>Computer&gt;Policies&gt;Admin Templates&gt;Windows Components&gt;Event Forwarding&gt;Configure target subscription manager</em></blockquote><p>Server=http://&lt;fqdn_collector&gt;:5985/wsman/SubscriptionManager/WEC,Refresh=60</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWznbC_p2QbyLgORtw2h_Q.png" /></figure><p>Note:</p><p>It can be observed that the connection to the collector will be over “http://” rather than “https://”. Even so in a domain environment the logs are encrypted using Kerberos and only the WEF collector can decrypt the logs. The “https://” variant is also available but requires a PKI for provisioning certificates on the clients.</p><p>3. Granting channel access permission for the Event Log Group.</p><p>In order for an account to have access to event logs (in our case the Network Service account) we need to grant special permissions to the Event Log readers group for accessing that particular channel. Remember that in step 1. we’ve added the “Network Services” principal to the Event Log readers group.</p><p><em>Computer -&gt; Policies -&gt; Administrative Templates Policy definitions -&gt; Windows Components -&gt; Event log Service -&gt; Security</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuZX5kw0j0YmV-rHeHakvA.png" /></figure><p>The ACLs that give channel access permissions are described using the Security Descriptor Definition Language (SDDL) as follows:</p><p>Ex. <strong>O:BAG:SYD:</strong>(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0xf0005;;;SY)(A;;0x5;;;BA)<strong>(A;;0x1;;;NS)</strong></p><p>where: <strong><em>(A;;0x1;;;NS)</em></strong> is “<strong><em>Network Service:Read</em></strong>”.</p><p>In order to check the channel access permissions for specific channels like “Security”, wevtutil comes in handy:</p><p>Command: <strong><em>wevutil gl Security </em></strong><em>(</em>where gl | get-log Get log configuration information.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*QpRk3nAYpJ-X7jH8nkBdTQ.png" /></figure><p>We can check the permission for Sysmon as well:</p><p>Command: <strong><em>wevutil gl Microsoft-Windows-Sysmon/Operational</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*lYfawpEG_JTdT3TPzTFkbA.png" /></figure><p>In case the <strong><em>Microsoft-Windows-Sysmon/Operational</em></strong><em> </em>does not have channel access permission for Network Service account we can add it via GPO like so:</p><p>We have the possibility to update the “<strong>ChannelAccess</strong>” key to a value of our interest.</p><p><strong><em>Group Policy Manager-&gt; Computer Configuration -&gt; Preferences -&gt; Windows Settings -&gt; Registry -&gt; New registry property</em></strong></p><p>Select the corresponding key path:</p><p><strong><em>MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Sysmon/Operational</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13WtqIlEUMIIAzPfizwtyg.png" /></figure><h3>Troubleshooting</h3><h4>Troubleshooting on the collector</h4><p>You can verify the status of the subscription by opening the event viewer and checking subscriptions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*nuYdHbIKa_eM-EjuXQMdNg.png" /></figure><h4>Troubleshooting on the client computer</h4><p>You can check if the subscription works by opening the event viewer:</p><p><strong>Application and Services Logs -&gt;Microsoft -&gt; Windows -&gt; Event-Forwarder-Plugin</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1j8dBlr9Pe4mSuzhoDyDg.png" /></figure><h4>Resources</h4><p><a href="https://silentbreaksecurity.com/windows-events-sysmon-elk-part-2/">https://silentbreaksecurity.com/windows-events-sysmon-elk-part-2/</a></p><p><a href="https://www.syspanda.com/index.php/2017/03/01/setting-up-windows-event-forwarder-server-wef-domain-sysmon-part-23/">https://www.syspanda.com/index.php/2017/03/01/setting-up-windows-event-forwarder-server-wef-domain-sysmon-part-23/</a></p><p><a href="https://natesec.com/configuring-windows-event-forwarding-with-sysmon/">https://natesec.com/configuring-windows-event-forwarding-with-sysmon/</a></p><p><a href="https://blogs.technet.microsoft.com/jepayne/2015/11/23/monitoring-what-matters-windows-event-forwarding-for-everyone-even-if-you-already-have-a-siem/">https://blogs.technet.microsoft.com/jepayne/2015/11/23/monitoring-what-matters-windows-event-forwarding-for-everyone-even-if-you-already-have-a-siem/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b65d491ff95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The quest for OS-hardening]]></title>
            <link>https://medium.com/@cosmin.ciobanu/the-quest-for-os-hardening-8affa979f36a?source=rss-10d7a1468fc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8affa979f36a</guid>
            <category><![CDATA[os-hardening]]></category>
            <category><![CDATA[security-benchmarks]]></category>
            <category><![CDATA[baseline-security]]></category>
            <category><![CDATA[security-defaults]]></category>
            <category><![CDATA[system-hardening]]></category>
            <dc:creator><![CDATA[cosmin ciobanu]]></dc:creator>
            <pubDate>Mon, 20 Aug 2018 12:04:30 GMT</pubDate>
            <atom:updated>2018-08-20T12:04:30.665Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2oWopa6Dy9LO765smyPTgQ.jpeg" /></figure><p>First of all it’s a no brainer that we need system hardening. Many of the recent ransomware outbreaks and cyber-security incidents happened due to this particular reason: Lack of strong security configuration according to the state of the art practices.</p><p>I recently embarked on a quest to identify, document and test the solutions out there for OS hardening and security baselines/benchmarks.</p><h4><strong>Background</strong></h4><p>In general, system hardening has three phases:</p><ol><li><strong>Developing a security baseline together with scoring metrics</strong> — which in practice means creating a set of configurations, that when applied, the current state of a system will transition to a more secure state. Each config within the baseline weights a particular amount of the total score.</li><li><strong>Comparing your current configuration against the baseline</strong> — Using specific tools capable of processing security baseline templates, a compliance score is usually given, expressing the level of compliance of your target system against the baseline.</li><li><strong>Applying the necessary controls</strong> in order to increase the compliance score which translates eventually to a more secure system.</li></ol><p>A well established source of such hardening guides is <a href="https://www.cisecurity.org/">CIS - Center for Internet Security</a>. This organization has been around for some years now and they are providing security benchmarks (baselines) for most of stuff that you can imagine (operating systems, mobile, servers, applications, databases etc). The free benchmarks come into the form of a pdf document which are rather cumbersome to work with. CIS is providing also specialized commercial tools for configuration assessment and control implementation.</p><p>Another important thing to mention is the fact that CIS is delivering pre-hardened machines via <a href="https://azuremarketplace.microsoft.com/">Microsoft Azure Marketplace</a> &amp; <a href="https://aws.amazon.com/marketplace">Amazon AWS Marketplace</a>.</p><p>The <a href="https://iase.disa.mil/stigs/Pages/index.aspx">US DoD Defense Information System Agency</a> are also providing hardening guides and tools, so-called STIGs (Security Technical Implementation Guides). The STIGs contain GPO templates, tools to verify the compliance of your system with the STIGs and much more.</p><p>The US Government provides also via <a href="https://csrc.nist.gov/Projects/United-States-Government-Configuration-Baseline/USGCB-Content">NIST</a>, several security baselines “United States Government Configuration Baseline”.</p><p>The Australian Government via <a href="https://acsc.gov.au/infosec/mitigationstrategies.htm">Australian Signals Directorate</a> has published actionable hardening guides for many systems and applications together with what they call “Essential eight” which is as the name implies is comprised of 8 key mitigation strategies.</p><p>GCHQ has published on their website under “<a href="https://www.ncsc.gov.uk/guidance/end-user-device-security">end user device security</a>” section, plenty of baselines and guides for system hardening.</p><p>Microsoft has come a long way as well in terms of system hardening. The so-called “<a href="https://www.microsoft.com/en-us/download/details.aspx?id=55319"><em>Microsoft Security Compliance Toolkit 1.0</em></a><strong>” </strong>package is available for free on their website. The package contains the following:</p><ul><li>A tool (PolicyAnalyzer) for checking the compliance of your system against a benchmark/STIG/baseline.</li><li>Windows 10 and Windows Server 2012 R2, Office suite, IE security baselines.</li><li>Local group policy templates and other configuration templates for implementing the necessary controls.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*h27WpFvodJDwUIP9jUFxww.png" /><figcaption>Example of comparing the local security policy against the baseline.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*WnxjI1syG3E3ptWUDJgGGA.png" /><figcaption>The output of the comparison</figcaption></figure><p>Another interesting open source project is <a href="https://www.open-scap.org/">OpenScap</a>, a RedHat initiative, recognized by NIST, which is providing auditing tools and security baselines (SCAP security guides). Their security baselines are defined using the <a href="https://www.open-scap.org/features/standards/">Security Content Automation Protocol</a> (SCAP) a NIST approved standard. Using the <strong><em>SCAP workbench</em></strong> graphical utility you can load the desired security baseline and perform configuration and vulnerability scanning as well as remediation. The SCAP workbench utility has a Windows installers and you can import the <a href="https://csrc.nist.gov/Projects/United-States-Government-Configuration-Baseline/USGCB-Content/Microsoft-Content/Windows-7">USGCB baselines available on NIST</a> due to their SCAP standardized format. At the moment only linux remote scans are possible, the local/remote Windows scans are not yet available.</p><p>Other Windows hardening tools this time provided by the <a href="https://www.securitywithoutborders.org/">Security Without Borders</a> initiative, you can find on their <a href="https://github.com/securitywithoutborders/hardentools">github repository</a>.</p><p>Moving on, nowadays, we are definitely living in the DevOps era. This is a period characterized by fast development/deployment cycles using infrastructure and configuration provisioning solutions, containerization and automation.</p><p>I came across several initiatives and options for automated system hardening in the “DevOps” spirit.</p><p>My use case for system hardening was the following:</p><blockquote>Given an Ubuntu 16.04 LTS with LAMP (Linux, Apache, MySQL, Php) or LEMP stack (Linux, Nginx, Mysql, Php). How can I test the current compliance against existing baselines and how can I provision a hardened machine automatically?</blockquote><p><a href="https://github.com/hubblestack/hubble">Hubblestack</a> v2 is a modular (Adobe initiative), open-source security compliance framework built on top of <a href="https://saltstack.com/">Saltstack</a>.</p><p>The installation is pretty straight forward:</p><pre>sudo yum install git python-setuptools -y<br>git clone https://github.com/hubblestack/hubble<br>cd hubble<br>sudo python setup.py install</pre><p>It is important to mention that the developers made a huge effort into manually transposing CIS Security benchmarks into <a href="https://github.com/hubblestack/hubblestack_data/tree/develop/hubblestack_nova_profiles/cis">yaml based profiles</a> that can be used by Hubblestack. The audit module of Hubblestack is called Nova and checking the compliance of your system comes down to one simple command:</p><pre>root@darkstar:~$ sudo hubble hubble.audit<br>[sudo] password for root:<br>{&#39;Compliance&#39;: &#39;70%&#39;,<br> &#39;Controlled&#39;: [{&#39;CIS-5.4.2&#39;: &#39;Code change required for filtering the users by their login shell&#39;}],<br> &#39;Errors&#39;: [{&#39;CIS-1.1.20&#39;: &quot;An error occurred execution function sticky_bit_on_world_writable_dirs: global name &#39;CommandExecutionError&#39; is not defined&quot;},</pre><p>Another interesting initiative that I came across activating in the area of DevOps security is <a href="https://dev-sec.io/">https://dev-sec.io</a>. On the project’s <a href="https://github.com/dev-sec/">github repository</a> you can find security baselines for different OS and services, tailor made for IT automation platforms like Chef, Puppet, Ansible, SaltStack, InSpec.</p><p>I will try to showcase the application of an Ubuntu 16.04 security baseline using Ansible (I’m a bit more familiar with this platform).</p><p>The concept behind Ansible is pretty simple. Ansible relies on playbooks which contain so-called plays. Plays map group of hosts to well defined roles. The roles are configuration templates and tasks (system commands) that will run sequentially on the destination system.</p><p>Ansible <a href="https://galaxy.ansible.com/home">galaxy</a> is the one-stop-shop where community users share their pre-defined Ansible roles. It is here that I’ve identified a dedicated role for applying the <a href="https://galaxy.ansible.com/florianutz/ubuntu1604-cis">Ubuntu 16.04 CIS Baseline</a>. If you want to check the individual tasks and commands just drill-down in the role’s folder.</p><p>The procedure for applying such Ansible role locally (works remotely as well via ssh) to a desired system is the following:</p><p>Make sure you have Ansible installed on the system:</p><pre>$ sudo apt-get update<br>$ sudo apt-get install software-properties-common<br>$ sudo apt-add-repository ppa:ansible/ansible<br>$ sudo apt-get update<br>$ sudo apt-get install ansible</pre><p>Create a dedicated folder for the playbook and grab the desired role from Ansible galaxy like so:</p><pre>$ ansible-galaxy install florianutz.ubuntu1604-cis</pre><p>In the root of the newly created folder, create a file called site.yml in which the desired role is invoked:</p><pre>---<br>- name: Hardened Ubuntu1604-CIS Server<br>  hosts: localhost<br>  become: yes</pre><pre>roles:<br>    - Ubuntu1604-CIS</pre><p>Run the playbook:</p><pre>$ sudo ansible-playbook site.yml</pre><p>Voila !!! You’ve got yourself a hardened Ubuntu 16.04 server.</p><p><em>Note: Be aware of applying the hardening role directly onto production servers as things might break down. Also you can include other roles like SSH, Apache, Mysql in the playbook.</em></p><h3><strong>Conclusions</strong></h3><ul><li>There are many options available for system hardening both open source and commercial.</li><li>Some solutions are better adapted towards specific operating systems and in some cases only the compliance check feature is available without remediation option.</li><li>Thorough testing of the security baselines before applying them to production systems is critical.</li><li>The well known IT automation platforms used in DevOps (Chef, Puppet, SaltStack, Ansible etc.) and the communities around them are the way to go when it comes to security automation and system hardening.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8affa979f36a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My top 5 OPSEC rules for airport lounges]]></title>
            <link>https://medium.com/@cosmin.ciobanu/my-top-5-opsec-rules-for-airport-lounges-7c0a48d4c09b?source=rss-10d7a1468fc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c0a48d4c09b</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[security-awareness]]></category>
            <category><![CDATA[physical-security]]></category>
            <category><![CDATA[opsec]]></category>
            <category><![CDATA[business-traveller]]></category>
            <dc:creator><![CDATA[cosmin ciobanu]]></dc:creator>
            <pubDate>Thu, 28 Jun 2018 14:42:34 GMT</pubDate>
            <atom:updated>2018-07-02T18:00:27.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5968DayEwzt3F8HGK0aww.jpeg" /><figcaption><a href="https://traveluxblog.com/2017/03/21/hamburg-airport-lounge/">Hamburg lounge</a></figcaption></figure><p>While traveling abroad I’m always surprised at the way people behave in airport lounges. These mystical places in the airports trigger certain promiscuity in the people that cross their premises.</p><p>In terms of categories of people present in airport lounges I would say that business travelers are definitely the most encountered category of them all (heavy travelers which hold airline loyalty program premium cards).</p><p>For some reason (that I don`t understand) most of these people feel uninhibited and casual in this kind of environments. So relaxed and yet so dedicated to their work that as soon as they arrive they’ll pop-out their laptops and start working without paying attention or caring of their surroundings.</p><p>A determined social engineer could easily gather loads of juicy information about potential targets just by shoulder surfing. This is also due to the fact that in most of the cases the layout of the tables and seats in the lounge are back to back which makes the job of the social engineer easier.</p><p>In many occasions I’ve passively participated in conf. calls and overheard many important details just by doing nothing and sitting in my place.</p><p>Having said this, here are my top 5 threats that I’ve encountered and how to overcome them.</p><h3><strong><em>1. Shoulder surfing</em></strong></h3><p>As you can observe in these images nobody actually cares that there might be somebody behind them checking their screens (or thanking their picture for that matter :) ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*BQFIYaCjZHPRKGmA_KR8rw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7c-9vvLzSIJTqJ09lUuU1g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*y8WomHt9d-tE0rVtOJQajw.jpeg" /></figure><p><strong><em>Be aware of your surroundings</em></strong> (Who is behind you, how easily can he/she see your laptop screen).</p><p><strong><em>Use privacy filters for your laptop screen</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*nrgzq3dIPqJtIvpgBMowoA.jpeg" /><figcaption><a href="https://www.amazon.com/Privacy-Filter-Screen-Protector-Widescreen/dp/B01CC8QCGI">Image source</a></figcaption></figure><p>It is quite rare to see people using privacy filters on their laptop screens even less on their phones. Don`t be one of those people!!!</p><h3><strong><em>2. Passive conversation listening</em></strong></h3><p>If you need to have a personal/business call, make sure you have it in <strong><em>designated places</em></strong> rather than loudly speaking on the phone while being among many people.</p><h3><strong><em>3. Dumpster diving</em></strong></h3><p>Many people throw away their boarding passes or other kings of documents containing important information (If you have doubts of what you can achieve with information from boarding passes read <a href="https://red-goat.com/uncategorized/boarding_passes/">here</a> and <a href="https://red-goat.com/uncategorized/boarding_passes/%20%20https://www.kaspersky.com/blog/dont-post-boarding-pass-online/10495/">here</a>). <strong><em>Make sure you manually “shred” or dispose the documents</em></strong> so that no important data is leaked.</p><h3><strong><em>4. Public computers</em></strong></h3><p>Travelers some times use the designated workstations provided by the airport lounge in order to check their emails and/or print their boarding passes. First of all we don`t know if those particular workstations are safe, second, travelers often forget to logout of their inboxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMkBrmztm52pn9Zw9zw8fA.jpeg" /></figure><p>I came across wide open email inboxes where I could easily read everything (I actually just logged them out). The main message is: <strong><em>avoid using such workstations/devices</em></strong>.</p><h3><strong><em>5. Unattended devices</em></strong></h3><p>The unconditional reflex everybody has right after entering the lounge, is to grab their mobile phones and laptops put them on the table (even opening and booting up the laptop) then go right away for food while leaving the devices unattended. Since physical access to the device is possible, there are countless ways in which your data can be compromised (<a href="https://hakshop.com/products/usb-rubber-ducky-deluxe">RubberDucky</a>, <a href="https://www.pjrc.com/teensy/">Teensy devices</a>, <a href="https://samy.pl/poisontap/">PoisonTap</a>, <a href="https://malduino.com/">Malduino</a>, evilMaid etc.)</p><p>Never leave your laptop/phone unattended or unlocked!</p><h3>Conclusions</h3><p>Being cautious and aware is important, even when you are laying in comfortable chairs in an airport lounge. Of course these recommendations can be applied in any other similar environment like for example while traveling in metro, train, bus etc.</p><p>Stay safe and secure!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c0a48d4c09b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The only OSCP advice you will need!!!]]></title>
            <link>https://medium.com/@cosmin.ciobanu/the-only-oscp-advice-you-will-need-ae141060b87c?source=rss-10d7a1468fc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae141060b87c</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[cosmin ciobanu]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 16:59:39 GMT</pubDate>
            <atom:updated>2018-01-23T16:59:39.389Z</atom:updated>
            <content:encoded><![CDATA[<p>In the following article I would like to share my journey into obtaining the Offensive Security OSCP certification. My goal is not to re-iterate what has been already said but rather give a more tailored advice to the potential pursuant of this certification. What I can tell you right of the bat is that the entire process is very rewarding after you will go through it.</p><h3><strong>The Lab</strong></h3><p>The PWK training course comes with videos accompanied by a PDF guide. Go through both the videos and the PDF, do the important exercises (ex. buffer overflow) and take proper notes (ex. KeepNote, OneNote, plain ATOM with markdown, are fine). The famous lab environment is meant as a playground for the OSCP exam taker. 90 days lab access should be enough to go through most of the public network machines. Once you get a glimpse on the techniques you start poking the lab machines.</p><h4>Structure your work</h4><p>It is important to have a proper write-up of the lab machines and work in a structured manner. By doing so you train yourself into drafting proper reports and it will help you a lot later in the exam. Make sure you include all necessary proofs and code snippets, commands, screenshots for each step of the process. (Ex. Step.1 info gathering,2. enumeration &amp; reconnaissance , 3. exploitation, 4. privilege escalation,5. post exploitation). Try to reproduce the results by going through the write-ups in order to validate their quality.</p><p>IMHO it’s not worth it to lose precious lab time for doing the lab report as it requires quite some effort and you’ll get only 5 points in the exam.</p><h4><strong>Lab/exam logistics</strong></h4><p>Port scanning information management:</p><p>Metasploit is great tool for managing portscan information of the lab/exam targets.</p><pre>#Start the postgresql server<strong><br>root@kali:~# service postgresql start</strong><em><br></em>#Enter the metasploit console<br><strong>root@kali:~#</strong> <strong>msfconsole</strong><br>#Create individual workspaces for lab / exam<br><strong>msf&gt; workspace -a lab_network (public/IT/ dev)<br>msf&gt; workspace -a exam_network</strong><br>#Switch to a particular workspace. All the scans will be saved in this context<br><strong>msf&gt; workspace lab_network</strong><br>#Remove workspace<br><strong>msf&gt; workspace -d lab_network</strong><br>#Scan the ports of a target and save the outputs into the db<br><strong>msf&gt; db_nmap -sVV -p- -A -T4 &lt;IP&gt;</strong><br>#Retrieve the list of available machines from the db<br><strong>msf&gt; hosts</strong><br>#View the open ports/services of a particular machine<br><strong>msf&gt; services -u &lt;TARGET-IP&gt;</strong></pre><p>More details here: <a href="https://www.offensive-security.com/metasploit-unleashed/using-databases/">https://www.offensive-security.com/metasploit-unleashed/using-databases/</a></p><h4><strong>TIP: Privilege escalation is the key to both exam and lab!!!</strong></h4><p>There are no restrictions on using Metasploit in the lab but in the exam it’s allowed on only 1 box.</p><p>My recommendation is to use Metasploit throughout the lab but without the meterpreter payload. In this way you will be able to learn better the art of privilege escalation (meterpreter trivializes privilege exploitation &amp; post exploitation.). All the lab/exam boxes are meant to be exploited using different exploits and techniques.</p><p><strong>TIP: Read carefully and replicate the steps from the write-up provided by Offensive Security for the Alpha box. Adapt your techniques accordingly.</strong></p><p><strong>TIP: Enumerate more means: Scan ports, scan all the ports, scan using different scanning techniques, bruteforce web dirs, bruteforce web dirs using different wordlist and tools, check for file permissions, check for registry entries, check for writable folders, check for privileged processes and services, check for interesting files, look for a more suitable exploit using searchsploit, search google for valuable information etc.</strong></p><p><strong>TIP: Don’t forget to revert your lab/exam machines.</strong></p><h3>The EXAM</h3><p>Sleep well the night before.</p><p>Fix the structure of the report and add as much information as possible to the report template and to your notes prior to the exam. Things like: general statements, placeholders for information to be added, buffer overflow steps etc.</p><p>Start early in the morning with the targets that will yield the highest number of points (25). The goal is to obtain at least 50 points while you are still fresh and your brain still functions :). Continue with the rest of the machines .</p><p>Stretch your back and take breaks, eat well, have snacks and drinks.</p><p>Valuable resources that you should consider:</p><p><a href="https://xapax.gitbooks.io/security/content/">https://xapax.gitbooks.io/security/content/</a></p><p>Follow the steps in these two playbooks:</p><p><a href="https://github.com/xapax/oscp/blob/master/linux-template.md">https://github.com/xapax/oscp/blob/master/linux-template.md</a> <a href="https://github.com/xapax/oscp/blob/master/windows-template.md">https://github.com/xapax/oscp/blob/master/windows-template.md</a></p><p>Privilege escalation:</p><p><a href="http://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/">http://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/</a> <a href="http://www.fuzzysecurity.com/tutorials/16.html">http://www.fuzzysecurity.com/tutorials/16.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae141060b87c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>