<?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 Harshith Shiva on Medium]]></title>
        <description><![CDATA[Stories by Harshith Shiva on Medium]]></description>
        <link>https://medium.com/@harshithshivab?source=rss-859e1f4c7af1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hzflEe4i2QtxJhIacgElzw.jpeg</url>
            <title>Stories by Harshith Shiva on Medium</title>
            <link>https://medium.com/@harshithshivab?source=rss-859e1f4c7af1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:41:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshithshivab/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[Security, Operating Systems and Keystrokes: An Unorthodox Brainchild]]></title>
            <link>https://medium.com/@harshithshivab/security-operating-systems-and-keystrokes-an-unorthodox-brainchild-82b1334d619e?source=rss-859e1f4c7af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b1334d619e</guid>
            <category><![CDATA[behavioural-biometrics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[operating-systems]]></category>
            <dc:creator><![CDATA[Harshith Shiva]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 14:32:19 GMT</pubDate>
            <atom:updated>2026-02-01T14:32:19.618Z</atom:updated>
            <content:encoded><![CDATA[<p>“<strong>Enter Password</strong>” a phrase that most of us see on the daily, but do we ever take a moment to understand the power and access a single phrase has, to even the most private nook and cranny of our life. This raises the question is the trust vested in this single word justifiable? is a measly combination of characters, numbers and symbols enough to keep your digital life safe?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3L38iEm8HXuIR4oC.jpg" /></figure><h3>The Problem:</h3><p>Gone are the days when having a mix of upper case, lower case, numbers, characters and symbols was considered an uncrackable password recent studies by Kaspersky a global leader in cybersecurity revealed that 45% of all passwords can be guessed by scammers within a single minute. Researchers checked 193 million passwords that were found on the dark web, finding that only 23% (44M) of combinations turned out to be resistant enough that cracking them would take more than a year.</p><p>Another problem with complex passwords is that they only protect you from attackers using brute force but what about passwords being stolen by people just seeing you type them? a term typically known as <strong>“shoulder surfing”</strong></p><p>Protection services like firewalls or antiviruses only stop digital attacks, but what happens when the person entering the password isn’t you but there is no way to actually verify it’s you entering the password.</p><p>The most common answer would be to use either <strong>facial recognition or biometrics</strong>, while both these methods offer higher levels of security than only having password protection they both have their drawbacks, in the case of facial recognition implementation is costly, but the most important concern is privacy, is <strong>Sacrificing secrecy for security worth it ? </strong>where do we draw the line? is letting an application capture visuals of your face actually safe?</p><p>On the other hand, biometrics pose the same concern of security, what’s stopping anybody from acquiring your fingerprints, something which we leave around anytime we touch something all it takes a professional is some dusting powder, a brush and some tape to get your print. If we can’t rely on neither biometrics or facial recognition then what is the solution?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*wPO_lvFQwgnpwkzt.jpg" /></figure><h3><strong>The Solution in Our Fingertips:</strong></h3><p>For a solution to this problem, we don’t need to look further than our fingers, while fingerprints can be taken and replicated easily, there is one thing that cannot be replicated by an attacker entering your password, something unique only to you, The answer? not the password you type but the way you type it !! A password once known can be bypass all security measures easily, but what changes even then is how you type the password vs how the imposter types your password. Any attacker using stolen devices to enter passwords has an element of nervousness, leading them to be fidgety, making small mistakes that may not visible to the human eye but what about a model trained on a typing dataset unique only to you, a model that takes into account data such as <strong><em>“keydown-time”, “keyup-time”, “flight-time”, “typing-time-of-day”, “latency-time”. </em></strong>The workings of this ml model is for another article another day, but all we need to understand from a security point of a view is that a model that evolves with you and does not operate on sensitive data such as visuals of the person or their fingerprints but instead on their behaviour solves both problems of password efficiency and shoulder surfing. Thus this <strong>behavioural biometric using keystroke dynamics</strong> acts as a silent layer of security that ensures that not just the password being entered is correct but the way the password is being entered is also correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7J2r2y4EPDOlxCgU.png" /></figure><h3><strong>OS Security and Keystroke Dynamics:</strong></h3><p>One-way behavioural biometrics can be used to secure systems is by using them with the operating systems bringing ultimate protection at the base level. Traditional OS security assumes that if you know the password, you are the user Keystroke dynamics breaks this assumption. A better implementation of keystroke dynamics is by making it dynamic and continuous By embedding keystroke dynamics at the operating system level, authentication shifts from a one-time gate to a <strong>continuous identity check</strong>. Even after login, the OS keeps quietly asking: <em>Does this still feel like the same person? </em><strong>A<em> </em>breathing shield of continuous authentication which detects fraudulent activity just by typing behaviour</strong></p><h3>Implementation:</h3><p>Implementation of Keystroke dynamics at the OS level is on paper a relatively simple task</p><p><strong>Low-Level Capture:</strong><br> At the OS level, raw keyboard events are intercepted to record <strong>KeyDown</strong> and <strong>KeyUp</strong> timestamps.</p><ul><li><strong>Windows:</strong> WH_KEYBOARD_LL <strong>h</strong>ooks or kernel input drivers</li><li><strong>Linux: /dev/input/event </strong>via evdev or X/Wayland integration</li><li><strong>macOS:</strong> Quartz Event Taps (CGEventTapCreate)</li></ul><p>Modifier keys are ignored or normalized to reduce noise.</p><p><strong>Feature Extraction:</strong><br> From timing data, the system computes behavioral features such as:</p><ul><li><strong>Dwell time</strong>, <strong>flight time</strong>, and inter-key latencies</li><li>Statistical measures (mean, variance, typing speed)</li><li>Error patterns (backspace and correction behavior)</li></ul><p>Features are processed in <strong>sliding windows</strong> (50–100 keystrokes) with normalization and outlier filtering to ensure stability.</p><p><strong>Enrollment &amp; Modeling:</strong><br> During enrollment, typing data is collected across applications and time periods to avoid overfitting. Only encrypted <strong>behavioral profiles</strong> (not keystroke content) are stored using OS-secure storage. Lightweight ML models — such as <strong>Random Forests</strong>, <strong>One-Class SVMs</strong>, or <strong>GMMs</strong> — learn the user’s typing distribution and output a continuous confidence score.</p><p><strong>Continuous Authentication:</strong><br> The OS continuously compares live typing behavior against the learned profile. Adaptive thresholds adjust sensitivity based on context, such as accessing privileged resources.</p><p><strong>Response Mechanisms:</strong><br> On confidence drop, the system applies <strong>graduated responses</strong> — locking sensitive processes, triggering reauthentication, or flagging the session — without disrupting normal use.</p><p><strong>Security &amp; Privacy:</strong><br> Keystroke dynamics resists phishing, shoulder surfing, and credential theft while preserving privacy: no characters are stored, only anonymized timing data processed locally.</p><p><strong>In essence:</strong> passwords verify once; keystroke dynamics <strong>verifies continuously</strong>, making identity harder to steal and easier to protect.</p><p><strong>OS Integration Strategy Best deployment models:</strong></p><p>As a background security<strong> daemon</strong> Integrated into PAM (Linux) or LSA (Windows) Linked to session managers and access control layers This allows protection even if applications are compromised.</p><h3>Conclusion:</h3><p>Keystroke dynamics redefines operating system security by shifting authentication from static secrets to continuous behavioral verification. By embedding identity checks directly into the OS input pipeline, it eliminates reliance on passwords that can be stolen, observed, or replayed. The approach is lightweight, privacy-preserving, and resilient against modern attack vectors, offering security that adapts in real time without disrupting the user. In an era where credentials are endlessly copied, keystroke dynamics proves that the most reliable identifier is not what a user knows, but how they naturally behave.</p><h3><strong>References:</strong></h3><p><a href="https://www.wired.com/2014/06/google-glass-snoopers-can-steal-your-passcode-with-a-glance/">Google Glass Snoopers Can Steal Your Passcode With a Glance | WIRED</a></p><p><a href="https://techbusinessguide.com/disadvantages-facial-recognition/#google_vignette">6 Disadvantages of Facial Recognition You Need to Be Aware of — Tech Business Guide</a></p><p><a href="https://usa.kaspersky.com/about/press-releases/kaspersky-studies-193-million-passwords-finds-45-could-be-cracked-in-less-than-a-minute?">Kaspersky studies 193 million passwords, finds 45% could be cracked in less than a minute</a></p><p><a href="https://securitytoday.com/articles/2025/08/18/46-of-enterprise-passwords-vulnerable-to-cracking.aspx">46% of Enterprise Passwords Are Vulnerable to Cracking — Security Today</a></p><p><a href="https://www.thesun.co.uk/tech/35145988/password-leak-database-180-million-paypal-netflix-gmail/">Urgent warning as 180 MILLION passwords ‘exposed’ including Gmail, Netflix and PayPal accounts in huge data dump</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b1334d619e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>