<?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 80h3m14n on Medium]]></title>
        <description><![CDATA[Stories by 80h3m14n on Medium]]></description>
        <link>https://medium.com/@80h3m14n?source=rss-5b1bf1d5eeb6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xA71lmUoMCdgoGNeSZjfag.png</url>
            <title>Stories by 80h3m14n on Medium</title>
            <link>https://medium.com/@80h3m14n?source=rss-5b1bf1d5eeb6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@80h3m14n/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[Startup Accelerators & Incubators in 2026: What to Actually Expect]]></title>
            <link>https://medium.com/@80h3m14n/startup-accelerators-incubators-in-2026-what-to-actually-expect-82c3e6e26dfe?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/82c3e6e26dfe</guid>
            <category><![CDATA[business-incubator]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[startup-accelerators]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 02:13:45 GMT</pubDate>
            <atom:updated>2026-10-28T02:13:45.119Z</atom:updated>
            <content:encoded><![CDATA[<p>The global accelerator market hit $6.07 billion in 2026, up from $5.11 billion in 2025 — an 18.6% CAGR with projections reaching $11.86 billion by 2030. The business incubator market sits at $28 billion and growing at 8.1% CAGR. But the numbers are less interesting than what’s actually happening on the ground: the landscape has shifted in ways that make the advice from even two years ago partially obsolete.</p><p>This is a practical guide for founders navigating the 2026 landscape.</p><h3>The Four Trends Reshaping 2026</h3><p>Before you apply anywhere, understand the structural shifts that define this year’s landscape.</p><h3>1. AI Is the Default Category</h3><p>Roughly 60% of Y Combinator’s 2026 batches are AI companies. Station F launched F/ai backed by OpenAI, Anthropic, Google, Meta, Microsoft, and Mistral. Techstars runs dedicated AI cohorts. The global count of AI-native incubators has reached 180 with over 1,200 incubated projects.</p><p>What this means for you: if you’re building in AI, you have more specialized options than ever — but the bar for “we use AI” vs. “AI is the product” has risen sharply. Generic “AI-powered” positioning no longer differentiates.</p><h3>2. Deal-Term Convergence at the Top</h3><p>The top programs have converged on similar structures:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ty3kQfOgPX_MCfsa4Bdmng.png" /></figure><p>The key shift: Techstars increased its deal by $100K to match YC’s structure, and Antler doubled its Nordic terms. The “standard” top-tier deal is now $200K–$500K for 5–7%.</p><h3>3. Geographic Expansion</h3><ul><li>Creative Destruction Lab expanded to 16 sites across 10 countries</li><li>Plug and Play added 9 new locations</li><li>Multiple accelerators entered the Middle East (500 Global Sanabil, Alchemist Doha, CDL-Doha)</li><li>Founder Institute expanded government-backed programs to Pakistan, Morocco, and the Gulf</li><li>Google for Startups launched an AI-first cohort across 17 African countries</li><li>Antler now operates in 30+ cities</li></ul><p>Silicon Valley is no longer a prerequisite. Singapore, Berlin, London, Austin, and New York are producing world-class outcomes. The top 20 incubators hold 70% of capital flow, but regional diversification is accelerating.</p><h3>4. Corporate-Backed Programs Are Growing</h3><p>Corporate accelerators (Plug and Play, Google for Startups, Apple Entrepreneur Camp, AWS Startup Accelerator, Intel Ignite, Boeing HorizonX) now represent a significant share of the ecosystem. They offer:</p><ul><li>Equity-free or low-equity participation</li><li>Cloud credits and infrastructure access</li><li>Direct access to corporate distribution channels</li><li>But: alignment with the parent company’s strategic interests</li></ul><h3>Accelerator vs. Incubator: The 2026 Distinction</h3><p>The labels are still used loosely. Judge by structure, not name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHUrHY_xL3Lzg3gbeFayBQ.png" /></figure><p>Rule of thumb: If you don’t have a working product, you need an incubator or a pre-seed programme like Antler (which accepts individuals without a co-founder or product). An accelerator gives the most value once you have something users actually use.</p><p>In 2026, you need an MVP to apply to most accelerators. No accelerator funds a slide deck. Even if it has 20 users and a hideous UI.</p><h3>What to Expect</h3><h3>A Competitive, Multi-Stage Selection Process</h3><p>The typical funnel in 2026:</p><ol><li>Written application — pitch deck (10–15 slides), structured written responses, founder bios, traction metrics, product URL</li><li>Video pitch — 1–3 minutes from the founding team (YC: 1 minute; EIC Accelerator: 3 minutes; most others: 1–2 minutes)</li><li>Screening call / interview — 10–20 minutes with partners or a selection committee</li><li>Final decision — often same-day or within 1–2 weeks</li></ol><p>Rejection rates: The big programs reject ~99% of applicants at the written stage and another 70–80% at interview. If you make the interview, your odds jump to roughly 1 in 4.</p><h3>A Fixed, Intense Timeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMikwc34AG2sxMmRzj8zXw.png" /></figure><p>YC runs 3 months (now 4 batches/year, ~1,000 companies). Techstars runs 3 months. 500 Global runs 4 months. Antler runs 3–6 months. Station F runs 12 months.</p><h3>Mentorship That’s Genuinely Useful — If You Use It</h3><p>The best programmes pair you with operators who’ve built and scaled companies in your sector. The quality varies enormously. Research who’s actually mentoring, not just who’s on the logo wall.</p><h3>A Demo Day</h3><p>Most accelerators culminate in a demo day. This is the single highest-leverage 10 minutes of your early fundraising journey. 14 companies in YC’s W26 batch hit $1M ARR by Demo Day — but that’s the outlier, not the norm.</p><h3>A Cheque (If It’s an Equity Programme)</h3><p>See the table above. The range is $20K (Startupbootcamp, ~8%) to $1M (South Park Commons, 7%). Equity-free options exist (MassChallenge, Plug and Play, Google for Startups, Station F F/ai) but are more competitive and often sector-restricted.</p><h3>What NOT to Expect</h3><h3>A Guaranteed Investment Round After Demo Day</h3><p>A demo day is an introduction, not a term sheet. Some startups raise; many don’t. Don’t build your financial plan around the assumption that a demo day converts to a priced round.</p><h3>Passive, Hands-Off Support</h3><p>The programme is as good as the effort you put in. Founders who treat it as a badge for their slide while continuing to build in the background get a fraction of the value.</p><h3>Unlimited Access to the Network</h3><p>You get introductions, not a standing relationship. The network is a door, not a permanent membership.</p><h3>That “Incubator” and “Accelerator” Are Interchangeable</h3><p>Some organisations call themselves both. Read the actual programme structure, not the label.</p><h3>That Virtual = Equal to In-Person</h3><p>69% of programmes now operate virtually or hybrid. But the top programmes (YC, Techstars, Antler) still require significant in-person time. Check location rules before applying — Antler requires relocation to the host city. 500 Global needs weeks in person. Some programmes are fully remote.</p><h3>That Equity-Free Means “Free”</h3><p>Google for Startups is equity-free, but that doesn’t mean a cash grant. Cloud credits are a related benefit with their own eligibility review, not unrestricted money in your bank account.</p><h3>That You Can Do Two at Once</h3><p>Most programmes have exclusivity clauses. Pick one.</p><h3>That Your Application Will Get a Detailed Rejection</h3><p>Most rejections are a form email. “Not this time” is not a verdict on your idea. It’s a fit issue, a timing issue, or a volume issue.</p><h3>Common Application Requirements (2026)</h3><p>Across most global programmes, expect to provide:</p><ul><li>Pitch deck or short business plan — problem, solution, market, traction, team, ask (10–15 slides)</li><li>Written responses — structured questions about the problem, business model, and why this programme</li><li>Video pitch — 1–3 minutes from the founding team (increasingly mandatory)</li><li>Product URL or demo — YC asks for a URL. Techstars wants to see what you’ve built. Have a working demo link, recorded walkthrough, or screenshots ready</li><li>Traction summary — revenue, active users, pilots, LOIs, retention rates, growth rate. Pull current numbers into one document</li><li>Founder bios and LinkedIn profiles — for each team member</li><li>Product-market fit evidence — customer quotes, usage patterns, repeat purchase data, NPS scores</li><li>Business registration — varies by country; some programmes require formal incorporation</li><li>Budget — showing how you’d use the funding (more common in grant-based programmes)</li></ul><h3>Stage-Specific Additions</h3><ul><li><a href="https://www.ycombinator.com/">Y Combinator</a> — text-based application with short-answer fields, 1-minute video, product URL. Takes 2–4 hours to complete. Interviews are 10 minutes via video call with 2–3 partners asking rapid-fire questions. No minimum revenue requirement, but the application rewards demonstrated progress and clarity.</li><li><a href="https://www.antler.co/">Antler </a>— no company, co-founder, or product required. You can apply as an individual with a problem statement. Must relocate to the host city. 3–6 month residency focused on co-founder matching and idea validation.</li><li><a href="https://www.techstars.com/">Techstars</a> — detailed application for the selected city/programme. Multiple interview rounds.</li><li><a href="https://500.co/">500 Global </a>— written responses + short video. Puts more weight on international traction and distribution strategy. Multiple interview rounds starting with a screening call.</li><li>SOSV / HAX — hardware, biotech, climate. Requires working prototypes. Offers lab access. Rolling basis.</li><li>Entrepreneur First — “talent-first” deep tech. Stipend + $250K investment. Bridges R&amp;D prototypes to commercial products.</li><li>Station F / F/ai — selective; focus on €1M ARR goal. AI-native, high growth. LLM Ops and agentic workflow automation.</li><li>MassChallenge — zero equity, prize-based. Healthcare, climate, AI. Equity-free mentorship and prizes.</li><li>Plug and Play — zero equity. 550+ corporate partners. Sector-specific.</li><li>Startupbootcamp — €15K–€40K for ~8%. Vertical-specific sector cohorts (fintech, IoT, energy).</li><li><a href="https://vilcap.com/">Village Capital </a>— peer-selected. Impact, sustainability. Mission-driven founders.</li><li><a href="https://www.alchemistaccelerator.com/">Alchemist</a> — enterprise B2B. ~$30K for ~5%. Clear monetization model required.</li><li>Dreamit — requires a product with revenue. Dedicated Health and Secure tracks.</li></ul><h3>European-Specific: EIC Accelerator</h3><p>If you’re EU-based, the EIC Accelerator is worth knowing about:</p><ul><li>Short proposal: 12-page form + 10-slide pitch deck + 3-minute video</li><li>Full proposal: 20-page form + implementation plan + financials + LOIs + FTO analysis + 3-minute video</li><li>Assessed by a technology expert + panel of 3+ experts</li><li>Can provide grants (up to €2.5M) and/or equity investment (up to €10M)</li><li>Open to EU member states and Horizon Europe associated countries</li></ul><h3>Practical Tips for 2026</h3><ol><li>Match your stage to the programme. Applying to an accelerator with just an idea wastes both your time and theirs. If you’re pre-product, look at incubators, Antler, or pre-seed programmes.</li><li>Check location rules before you apply. Antler requires relocation. YC is in-person in SF. Techstars varies by city. Some are fully remote. This is a dealbreaker for many founders and it’s not always obvious from the landing page.</li><li>Read the equity terms carefully. 5% and 12% look similar on a slide but compound very differently. Ask about MFN clauses, follow-on rights, and what happens if you raise a priced round during the programme. The 2026 convergence means top programmes are now at 5–7% — anything above 10% is worth questioning.</li><li>Look at the last three batches. Find the companies most similar to yours. If you can’t find any, your odds are low. Programmes select for pattern match.</li><li>Apply to 3–5 programmes. Rejection is the norm. Common reasons: no evidence of demand, business model doesn’t fit the programme’s focus, founders not full-time, or the company is too late for the stage the programme targets.</li><li>Don’t join two accelerators at once. Most have exclusivity clauses.</li><li>Record a strong video. YC treats it as a founder interview, not a product demo. Stay within the time limit. Show the product if allowed. Make the ask and team roles obvious.</li><li>Prepare for rapid-fire interviews. YC’s 10-minute interview with 2–3 partners is designed to filter for clarity of thought. Practise short and long pitches. Know your fundraising ask cold.</li><li>Align your metrics. Remove contradictions between your website, deck, and application. Partners will catch inconsistencies in diligence.</li><li>The AI question is now standard. Most programmes will ask how AI fits into your product or why it doesn’t. Have a clear answer. “We use AI” is not an answer. “AI is the product” or “AI is the moat” is.</li><li>Watch regulatory changes. In the EU, the Startup Bill and Horizon Europe rules affect eligibility. In the US, tax treatment of SAFEs and QSBS exclusions matter. In emerging markets, citizenship requirements for government-backed programmes are evolving.</li><li>The non-US founder share is rising. YC’s non-US founder proportion reached 35% in 2026, projected to exceed 50% by 2030. If you’re outside the US, you have more realistic access to top programmes than ever before.</li></ol><h3>Where to Start</h3><p>If you’re unsure which programme fits, the fastest path is:</p><ol><li>Identify your stage (idea, MVP, early revenue, growth)</li><li>Identify your sector (AI, fintech, health, climate, hardware, consumer, B2B SaaS)</li><li>Identify your location constraints (can you relocate? in-person required?)</li><li>Identify your deal preference (equity vs. equity-free vs. grant)</li><li>Shortlist 3–5 programmes that match all four</li><li>Apply</li></ol><p>The application process for most is free, takes 15–4 hours, and the worst that happens is a “not this time” email.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82c3e6e26dfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PiP always on top on KDE]]></title>
            <link>https://medium.com/@80h3m14n/pip-always-on-top-on-kde-e79061a881f4?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e79061a881f4</guid>
            <category><![CDATA[kde]]></category>
            <category><![CDATA[picture-in-picture]]></category>
            <category><![CDATA[multitasking]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Sun, 08 Mar 2026 13:25:22 GMT</pubDate>
            <atom:updated>2026-03-08T17:09:17.326Z</atom:updated>
            <content:encoded><![CDATA[<p>Picture-in-Picture (PiP) is a crucial multitasking feature that enhances productivity, entertainment, and efficiency across devices.</p><p>It allows users to watch video content in a small, movable window while using other apps or performing tasks on their device, keeping the video always visible and accessible.</p><p>On KDE systems, Picture-in-Picture (PiP) windows often fail to stay always on top due to limitations in how Wayland handles window stacking and application-level permissions.</p><p><strong><em>Note: KDE Plasma 6.5 To Introduce Wayland Picture-In-Picture Support</em></strong></p><p>Browsers like Firefox and Chromium-based apps (e.g., Vivaldi) do not automatically set the “keep above” flag for PiP windows under Wayland, causing them to be hidden behind fullscreen or active applications.</p><h3>Manual Workaround</h3><p>You can manually enable “Always on Top”:</p><ul><li>Right-click the PiP window → More Actions → Keep Above Others.</li><li>Or use Alt+F3 to open the window menu and select Keep Above.</li></ul><h3>Permanent Fix Using Window Rules</h3><p>To make PiP always stay on top automatically:</p><ol><li>Open System Settings → Window Management → Window Rules.</li><li>Click New → Use Detect Window Properties and click the PiP window.</li><li>Add rules:</li></ol><ul><li>Window Title: Picture in picture for Chromium based browsers(or your system’s language equivalent).</li><li>Window Class: Match your browser (e.g., firefox, vivaldi, brave-browser).</li></ul><p>4. Set Keep Above Other Windows → Force: Yes.</p><p>5. Apply and save.</p><p>If the above steps seem technical, after step 3 from above steps, click import rules or paste the following script in `~/.config/kwinrulesrc`</p><pre>[PiP Always On Top]<br>Description=Universal Picture in Picture Rule</pre><pre>[Picture in Picture Always On Top]<br>Description=Picture in Picture Always On Top<br>above=true<br>aboverule=2</pre><pre># Remove borders for a clean floating PiP<br>noborder=true<br>noborderrule=2</pre><pre># Hide PiP from taskbar and pager<br>skippager=true<br>skippagerrule=2<br>skiptaskbar=true<br>skiptaskbarrule=2</pre><pre># Match any window with &quot;Picture&quot; in the title<br>title=Picture in picture<br>titlematch=3<br>types=1</pre><pre># Make PiP appear on all virtual desktops<br>desktop=-1<br>desktoprule=2</pre><pre># ---------------------------<br># OPTIONAL: Fixed PiP Size<br># ---------------------------<br># width and height define the window size in pixels.<br># Example below creates a 480x270 PiP window (16:9 ratio).<br># Adjust if you want a larger or smaller PiP.</pre><pre># size=480,270<br># sizerule=2</pre><pre># ---------------------------<br># OPTIONAL: Fixed Position<br># ---------------------------<br># Places PiP near bottom-right corner.<br># Coordinates depend on screen resolution.<br># Example for 1920x1080 display.</pre><pre># position=1400,750<br># positionrule=2</pre><p>Reload rules:</p><pre>qdbus org.kde.KWin /KWin reconfigure<br><br># or<br>kwin_wayland --replace &amp; disown</pre><p>This ensures PiP windows are automatically forced to stay on top, even after restarts.</p><h3>Automatic Picture-in-Picture (Auto PiP)</h3><p>This feature is supported in Chromium-based browsers like Google Chrome, Microsoft Edge, and Brave, but availability depends on browser version, website support, and user settings</p><p>Many third-party sites intentionally disable or don’t support the Document Picture-in-Picture API / auto-PiP triggers, or use DRM/encrypted media (common on streaming sites like Netflix clones, Prime Video, etc.), which blocks or limits PiP entirely in Chromium browsers. Threfore, you’ll need to use the standard manual PiP (double right-click → “Picture in picture” on the video, or site-provided PiP buttons)</p><h4>Option 1: Use browser extensions</h4><ol><li>Picture-in-Picture Extension (By Google)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*BQQiqXV5mgC4m_MW873QjQ.png" /></figure><p>2. <a href="https://github.com/apotenza92/chrome-auto-pip">Auto Picture-in-Picture (by apotenza92)</a></p><p>3. <a href="https://github.com/hong-tm/Auto-Picture-in-Picture">Auto-Picture-in-Picture (by hong-tm)</a></p><p>4. Improved YouTube</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*bxHaQMO-Y-JofGHoHbUL3w.png" /></figure><h4>Option 2: Browser flags twerk</h4><p>Visit the URL brave://flags and filter search:</p><ul><li>#auto-picture-in-picture-for-video-playback</li><li>#browser-initiated-automatic-picture-in-picture</li></ul><p>✅ Tip: For best results, ensure the browser flag is enabled and the site supports the Picture-in-Picture API or Document Picture-in-Picture API.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e79061a881f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What If]]></title>
            <link>https://medium.com/@80h3m14n/what-if-da4a5b3b4b6b?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/da4a5b3b4b6b</guid>
            <category><![CDATA[overthinking]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[what-if]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[self-reflection]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 02:47:01 GMT</pubDate>
            <atom:updated>2026-03-07T02:47:01.220Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s 5 a.m., the world is quiet in a way that feels almost intentional, like the universe pressing pause so a few thoughts can finally be heard, my brain has decided sleep is optional.</p><p>Instead, it’s asking questions.</p><p>Not big, organized questions. Just small ones that keep multiplying.</p><p>What if I fail?<br>What if it works?<br>What if I actually tried?</p><p>Funny how the mind jumps between fear and possibility like it’s flipping a coin.</p><p>What if I had chosen medicine instead of tech?<br>Would I be in a hospital right now instead of staring at a screen?<br>Would my life feel more meaningful… or just different?</p><p>And then the questions get weirder.</p><p>What if the world is a simulation?<br>What if everything we stress about is just part of some cosmic experiment?<br>What if the point isn’t to get everything right, but just to experience the game?</p><p>The thing about “what if” is that it can trap you in doubt.</p><p>But it can also open doors.</p><p>What if the idea in your head is worth chasing?<br>What if the path you didn’t choose wasn’t better — just another version of life?<br>What if failure isn’t the opposite of success, but part of the route?</p><blockquote>Different people experience <em>“what if”</em> in very different ways.</blockquote><h4>The Fear perspective 😨</h4><p>For some people, “what if” is a warning.</p><p>What if I embarrass myself?<br>What if I make the wrong choice?<br>What if I lose everything I’ve built?</p><p>The brain is trying to protect you by predicting danger.</p><p>Here “what if” becomes<strong> anxiety</strong>.</p><h4>The Regret perspective 🕰️</h4><p>For others, “what if” lives in the past.</p><p>What if I had taken that opportunity?<br>What if I studied medicine instead of tech?<br>What if I had said yes that day instead of no?</p><p>These questions don’t change the past.</p><p>But they echo through it, searching for the life that almost happened.</p><h4>The Possibility perspective 🚀</h4><p>But there’s another kind of person.</p><p>The ones who hear “what if” and feel something different.</p><p>What if this idea works?<br>What if I build something meaningful?<br>What if the life I want is actually possible?</p><p>Here “what if” becomes<strong> curiosity and ambition</strong>.</p><h4>The Philosophical perspective 🧠</h4><p>This is when “what if” becomes <strong>existential curiosity</strong>.</p><p>What if the world is a simulation?<br>What if reality is stranger than we understand?<br>What if life isn’t about finding answers, but asking better questions?</p><p>Maybe the human mind was designed to wander.</p><p>Maybe “what if” is proof of that.</p><p>Here “what if”<strong> explores the nature of reality</strong>.</p><h4>The Creative Perspective 🎨</h4><p>This is where ideas are born.</p><p>What if we could talk to computers?</p><p>What if humans lived on Mars?</p><p>What if stories could show alternate universes?</p><p>Here “what if” fuels <strong>imagination.</strong></p><h3>The Courage Perspective 💡</h3><p>This is the <strong>transformational version</strong>.</p><p>It flips the usual fear question.</p><p><em>What if I never try?</em></p><p>Here “what if” becomes a <strong>push toward action.</strong></p><h4>The Ending</h4><p>Maybe “what if” was never meant to trap us in doubt.</p><p>Maybe it was meant to remind us that life is still unfinished.</p><p>That every path we haven’t taken…</p><p>still begins with the same two words.</p><p>What if.</p><p>Maybe “what if” isn’t meant to give answers.</p><p>Maybe it’s meant to keep us curious.</p><p>To remind us that life isn’t a straight line — it’s a maze of possibilities, alternate paths, and unfinished questions.</p><p>And maybe the real question isn’t:</p><p><em>What if?</em></p><p>Maybe it’s:</p><p><em>What now?</em></p><p>Maybe it’s an invitation.</p><p>An invitation to try.<br>To explore.<br>To risk being a beginner.</p><p>Because the real tragedy might not be failure.</p><p>It might be never finding out what could have happened if we simply asked ourselves:</p><p><em>What if I tried?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da4a5b3b4b6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Operating system development]]></title>
            <link>https://medium.com/@80h3m14n/operating-system-development-c4ddba532c15?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4ddba532c15</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[os-development]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 17:58:42 GMT</pubDate>
            <atom:updated>2026-03-05T18:12:30.079Z</atom:updated>
            <content:encoded><![CDATA[<p>Operating system (OS) development is the process of creating software that manages computer hardware and software resources, providing a platform for running applications and offering a user interface.</p><p>To build the <strong>smallest possible working operating system kernel</strong>, you only need a handful of core components. Every modern OS (from Linux to Windows NT) implements these same basic ideas in some form.</p><h4>1. Boot Loader (Start the Kernel)</h4><p>Before the kernel runs, something must <strong>load it into memory</strong>.</p><p>Typical boot loaders:</p><ul><li>GRUB</li><li>U-Boot</li></ul><p>The boot loader:</p><ol><li>Starts after firmware</li><li>Loads the kernel into RAM</li><li>Jumps to the kernel entry point</li></ol><p>Without this step, the CPU has <strong>no idea where your OS is located</strong>.</p><h4>2. Interrupt Handling</h4><p>Hardware devices communicate with the CPU using <strong>interrupts</strong>.</p><p>Examples:</p><ul><li>keyboard pressed</li><li>disk finished reading</li><li>timer tick</li></ul><p>Interrupt handling lets the kernel <strong>react to hardware events</strong>.</p><p>Without interrupts, the OS cannot interact with devices.</p><h4>3. Memory Management</h4><p>The kernel must control <strong>RAM usage</strong>.</p><p>Core responsibilities:</p><ul><li>allocate memory to programs</li><li>prevent programs from overwriting each other</li><li>track free memory</li></ul><p>Most OSes use <strong>virtual memory</strong>, mapping program memory to physical RAM.</p><p>Example used in:</p><ul><li>Linux</li><li>macOS</li></ul><p>Without memory management, programs would crash each other constantly.</p><h4>4. Process Management (Task Scheduling)</h4><p>Programs running on the OS are called <strong>processes</strong>.</p><p>The kernel must:</p><ul><li>create processes</li><li>pause/resume them</li><li>schedule CPU time</li></ul><p>Example scheduling loop:</p><pre>process A → run<br>process B → run<br>process C → run</pre><p>This is called <strong>multitasking</strong>.</p><p>The algorithm that decides this is the <strong>scheduler</strong>.</p><h4>5. System Call Interface</h4><p>Programs cannot access hardware directly.</p><p>Instead they request services from the kernel using <strong>system calls</strong>.</p><p>Examples:</p><pre>read file<br>write file<br>create process<br>allocate memory</pre><p>This interface separates:</p><pre>User programs<br>      ↓<br>System calls<br>      ↓<br>Kernel<br>      ↓<br>Hardware</pre><p>This protects the system from crashes and malicious programs.</p><h4>6. Basic Device Drivers</h4><p>Drivers allow the kernel to control hardware.</p><p>Minimum drivers usually include:</p><ul><li>console / screen output</li><li>keyboard input</li><li>storage device</li></ul><p>Example driver types:</p><pre>keyboard driver<br>disk driver<br>display driver</pre><p>Without drivers, your OS cannot interact with the outside world.</p><h4>7. File System (Optional but Practical)</h4><p>A kernel can run without a file system, but most real systems include one.</p><p>A file system organizes storage.</p><p>Examples:</p><ul><li>FAT32</li><li>ext4</li></ul><p>It allows operations like:</p><pre>open file<br>read file<br>write file<br>list directory</pre><p>Without this, programs must be <strong>hardcoded into the kernel</strong>.</p><h3>The Minimal Kernel Architecture</h3><p>Putting it all together:</p><pre>Applications<br>                  │<br>           System Call Interface<br>                  │<br>               Kernel<br>      ┌───────────┼───────────┐<br>      │           │           │<br>  Memory      Process     Interrupt<br> Management   Scheduler     Handler<br>      │           │           │<br>      └───────────┼───────────┘<br>               Drivers<br>                  │<br>               Hardware</pre><h3>Absolute Bare-Minimum Kernel (Educational)</h3><p>A truly minimal kernel can be:</p><ol><li>bootable</li><li>print text to screen</li><li>read keyboard input</li></ol><p>Example toy OS projects:</p><ul><li><a href="https://templeos.org/">TempleOS</a></li><li><a href="https://www.minix3.org/">MinixOS</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4ddba532c15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Click That Never Happened: Meet No-Interaction Attacks]]></title>
            <link>https://medium.com/@80h3m14n/the-click-that-never-happened-meet-no-interaction-attacks-0281a635e576?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0281a635e576</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[zero-day]]></category>
            <category><![CDATA[zero-click-attack]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 15:33:30 GMT</pubDate>
            <atom:updated>2026-02-11T15:33:30.574Z</atom:updated>
            <content:encoded><![CDATA[<p>For years, the cybersecurity mantra has been simple: <em>think before you click</em>. But what if the most dangerous attacks require you to do absolutely nothing? Welcome to the unnerving world of no-interaction attacks — where your biggest mistake is simply existing.</p><p>These are the ghosts in the machine. Attacks that slip through the cracks of your software, compromising your system without a single click, download, or permission prompt from you. In many cases, you won’t even know anything happened until it’s far too late. As our devices get smarter and more interconnected, these silent threats aren’t just coming — they’re already here.</p><h3>What the Hell Is a No-Interaction Attack?</h3><p>A no-interaction attack is exactly what it sounds like: an attacker exploits a vulnerability in software that processes data automatically. You don’t have to:</p><ul><li>Open a sketchy email</li><li>Click a malicious link</li><li>Download a nasty file</li><li>Enable a macro</li><li>Approve a damn connection</li></ul><p>The system does all the heavy lifting for you — and that’s precisely where the betrayal happens. If an application botches the handling of some cleverly crafted input (like a message, image, network packet, or notification), malicious code can execute silently in the background while you’re none the wiser.</p><h3>The Usual Suspects: Common No-Interaction Attacks</h3><h3>1. Zero-Click Messaging Mayhem</h3><p>Attackers send a malicious message to your device. If your messaging app automatically parses or previews the content, a vulnerability can trigger remote code execution — without you ever opening the message. This is the spyware’s favorite trick for targeting high-value marks.</p><h3>2. Drive-By Downloads</h3><p>Just visiting a compromised website can be enough. Your browser automatically loads scripts and processes content. If there’s an unpatched vulnerability lurking, malware can install itself silently while you’re casually browsing.</p><h3>3. Wormable Network Nightmares</h3><p>Some malware spreads across networks like wildfire, scanning for vulnerable systems and exploiting exposed services. No phishing required — just an unpatched system connected to the network, sitting there like a sitting duck.</p><h3>4. Wireless &amp; Proximity Threats</h3><p>Certain Bluetooth or Wi-Fi vulnerabilities have allowed attackers to compromise nearby devices without pairing or user approval. If your wireless service is active and vulnerable, exploitation can happen automatically while you’re sipping your coffee.</p><h3>5. Automatic File &amp; Metadata Fails</h3><p>Email clients, image viewers, and operating systems often process files automatically to generate previews or extract metadata. A flaw in that processing engine can be enough to execute malicious code before you even realize what’s happening.</p><h3>Why These Attacks Are Pure Nightmare Fuel</h3><p>No-interaction attacks are particularly terrifying because:</p><ul><li><strong>They bypass your awareness completely.</strong> All that security training is useless when no action is required from you.</li><li><strong>They’re masters of stealth.</strong> Victims often see no warning signs, no strange pop-ups, no system slowdowns — nothing.</li><li><strong>They frequently use zero-day vulnerabilities.</strong> These are unknown flaws without available patches, making them nearly impossible to defend against.</li><li><strong>They target high-value individuals and organizations.</strong> These aren’t random attacks — they’re often precision strikes.</li></ul><p>In short, even the most cautious and security-savvy users can be compromised without lifting a finger.</p><h3>The Real Villain: Automation and Complexity</h3><p>Modern systems prioritize convenience above all else:</p><ul><li>Messages are previewed instantly</li><li>Attachments are scanned automatically</li><li>Browsers render complex content dynamically</li><li>Devices sync data in the background</li></ul><p>Every automated process that handles external input expands the attack surface. If any part of that process contains a flaw, attackers can exploit it without requiring human interaction. We’ve traded security for convenience, and the bill is coming due.</p><h3>How to Fight Back (How to Reduce the Risk)</h3><p>While no defense is perfect against these ghost attacks, here are some practical steps to reduce your risk:</p><ul><li><strong>Keep everything updated.</strong> Most no-interaction attacks rely on unpatched vulnerabilities. Update your devices, software, and firmware religiously.</li><li><strong>Reduce exposed services.</strong> Disable unused ports, services, and wireless features. If you don’t need it, turn it off.</li><li><strong>Use reputable software vendors with strong security response teams.</strong> Not all software is created equal when it comes to security.</li><li><strong>Implement network segmentation in organizations.</strong> Don’t let a compromised device have free rein across your entire network.</li><li><strong>Monitor for anomalies rather than relying solely on user reports.</strong> By the time a user notices something’s wrong, it’s often too late.</li></ul><p>For high-risk individuals, advanced threat monitoring and hardened device configurations aren’t just recommended — they’re essential.</p><h3>Conclusion: Security Has Evolved</h3><p>No-interaction attacks represent a fundamental shift in cybersecurity — from exploiting <em>human behavior</em> to exploiting <em>software behavior</em>. They’re a stark reminder that security isn’t just about awareness — it’s about secure engineering, rapid patching, and minimizing unnecessary automation.</p><p>In an era where our systems do more for us than ever before, sometimes the most dangerous action is the one we never took. The next big breach might not come from someone clicking the wrong link — it might come from someone doing nothing at all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0281a635e576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux social engineering copy-paste trap]]></title>
            <link>https://medium.com/@80h3m14n/linux-social-engineering-copy-paste-trap-a68f74e7b1f0?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a68f74e7b1f0</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 11:01:27 GMT</pubDate>
            <atom:updated>2026-01-28T11:01:27.351Z</atom:updated>
            <content:encoded><![CDATA[<p>Yep, there are lots of copy-paste traps, and most of them work by hiding danger behind something that <em>looks</em> useful or harmless.</p><p>Most targeted audience are script kiddies, lazy system admins, new techies, chat/forum copy-paste culture etc.</p><p>I gathered common examples that I’ve often come across , but I’ll <strong>sanitize them</strong> so you see the <em>pattern</em> without being handed a weapon.</p><h3>1. “Looks like output, actually executes”</h3><p><strong>Pattern:</strong><br>Harmless-looking display command chained to something destructive.</p><p><strong>Shape (sanitized):</strong></p><pre># Sanitized chain<br>echo &quot;diagnostic info&quot; &amp;&amp; &lt;dangerous command&gt;<br><br># Example<br>echo &quot;Hello there&quot; &amp;&amp; sudo rm -rf --no-preserve-root /</pre><p>Why it works:</p><ul><li>People read the first part</li><li>Mentally stop parsing</li><li>Assume the rest is “related output”</li></ul><p>Red flag 🚩:<br>&amp;&amp; after a command that should <em>only</em> print text.</p><h3>2. “Base64 / encoded mystery blob”</h3><p><strong>Pattern:</strong><br>“Decode this and run it.”</p><p><strong>Shape:</strong></p><pre>echo &lt;encoded_blob&gt; | base64 -d | sh</pre><p>Why it works:</p><ul><li>Encoded text looks technical and opaque</li><li>User can’t easily see what will run</li><li>Often pitched as “installer” or “fix”</li></ul><p>Red flags 🚩:</p><ul><li>Encoding + shell execution</li><li>No explanation of decoded content</li><li>Piped directly into a shell</li></ul><h3>3.️ “Curl | bash” (the classic)</h3><p><strong>Pattern:</strong><br>Download and immediately execute remote code.</p><p><strong>Shape:</strong></p><pre>curl &lt;url&gt; | sh</pre><p>Why it works:</p><ul><li>Extremely common in install docs</li><li>Creates false legitimacy</li><li>Remote content can change later</li></ul><p>Red flags 🚩:</p><ul><li>No checksum</li><li>No review step</li><li>Executed as root</li></ul><p>⚠️ This isn’t <em>always</em> malicious — but it’s a <strong>huge trust leap</strong>.</p><h3>4. “Invisible characters / Unicode tricks”</h3><p><strong>Pattern:</strong><br>Command looks safe, but includes hidden characters.</p><p><strong>Examples of tricks:</strong></p><ul><li>Unicode homoglyphs (rm vs look-alikes)</li><li>Zero-width spaces</li><li>Right-to-left override characters</li></ul><p>Why it works:</p><ul><li>Your eyes lie to you</li><li>Terminal executes what you <em>can’t see</em></li></ul><p>Red flags 🚩:</p><ul><li>Copied from chat apps, PDFs, or websites</li><li>Command behaves differently than expected</li></ul><h3>5. “Alias / function overwrite”</h3><p><strong>Pattern:</strong><br>Redefines a common command to do something bad later.</p><p><strong>Shape:</strong></p><pre>alias &lt;common_cmd&gt;=&#39;&lt;dangerous behavior&gt;&#39;</pre><p>Why it works:</p><ul><li>Nothing bad happens immediately</li><li>Damage happens later when user runs a normal command</li></ul><p>Red flags 🚩:</p><ul><li>Commands modifying .bashrc, .zshrc, profile files</li><li>“Convenience aliases” from strangers</li></ul><h3>6. “Fork bomb disguised as a joke”</h3><p><strong>Pattern:</strong><br>Short, cryptic line presented as “funny” or “cool.”</p><p><strong>Shape (conceptual):</strong></p><pre>&lt;recursive self-spawning construct&gt;</pre><p>Why it works:</p><ul><li>Looks clever, not dangerous</li><li>Rapidly exhausts system resources</li><li>Can freeze or crash a machine</li></ul><p>Red flags 🚩:</p><ul><li>Extremely short but unreadable</li><li>Uses recursion, backgrounding, or subshells</li></ul><h3>7. “Fake fix / panic bait”</h3><p><strong>Pattern:</strong><br>Used during outages or errors.</p><p><strong>Pitch sounds like:</strong></p><blockquote><em>“If your system is broken, run this to reset permissions.”</em></blockquote><p>Reality:</p><ul><li>Command wipes configs, keys, or data</li><li>Damage blamed on “already broken system”</li></ul><p>Red flags 🚩:</p><ul><li>Urgency</li><li>Authority language</li><li>“This will fix everything”</li></ul><h3>8. “Destructive command hidden in formatting”</h3><p><strong>Pattern:</strong></p><ul><li>Markdown line breaks hide continuation</li><li>Semicolons or newlines buried at the end</li></ul><p><strong>Why it works:</strong></p><ul><li>Terminal doesn’t care about formatting</li><li>Humans skim visually</li></ul><p>Red flags 🚩:</p><ul><li>Long one-liners</li><li>Mixed formatting copied from web pages</li></ul><h3>How to mentally defend against copy-paste traps</h3><p>Use this checklist before pasting anything:</p><p>🛑 <strong>Pause</strong></p><ul><li>Do I fully understand <em>every</em> part?</li><li>Why does this need a shell at all?</li></ul><p>🔍 <strong>Inspect</strong></p><ul><li>Paste into a text editor first</li><li>Look for &amp;&amp;, |, ;, redirects, encoding</li></ul><p>🔐 <strong>De-escalate</strong></p><ul><li>Remove sudo</li><li>Run with echo instead</li><li>Use set -x or bash -n where possible</li></ul><p>📦 <strong>Isolate</strong></p><ul><li>Run in a container or VM</li><li>Never test on a real system</li></ul><p>The most effective protection is skepticism whereby you verify every command before running it, especially when copied from external sources.</p><h3>Conclusion</h3><p>Copy-paste traps work because:</p><ul><li>Humans trust formatting</li><li>We skim instead of parse</li><li>Terminals execute <em>exactly</em>, not safely</li></ul><p>They exploit human trust, not software bugs — that’s what makes them so powerful and effective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a68f74e7b1f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common website security bypasses]]></title>
            <link>https://medium.com/@80h3m14n/common-website-security-bypasses-6fd80f818a01?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fd80f818a01</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[website-security]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Tue, 11 Nov 2025 09:34:12 GMT</pubDate>
            <atom:updated>2025-11-11T14:06:47.192Z</atom:updated>
            <content:encoded><![CDATA[<p>A security bypass refers to a method or technique used to circumvent or disable security measures that are designed to protect a system, application, or network.</p><h3>Common Backdoor Patterns in Software Development</h3><h3>1. Magic Dev Header / Secret HTTP Flag</h3><p>Easy to implement during testing phases.</p><h3>Example</h3><pre>X-Dev-Access: yes</pre><h3>Danger</h3><p>If publicly disclosed in client code or comments will lead to unauthorized access.</p><h3>Detection</h3><pre>grep -r &quot;X-Dev-Access&quot; .<br>git grep -i &quot;dev-access\|x-dev&quot;</pre><pre>curl -i -X POST &#39;http://mypage.com/login&#39; \<br>  -H &#39;Content-Type: application/json&#39; \<br>  -H &#39;X-Dev-Access: yes&#39; \<br>  -d &#39;{&quot;email&quot;:&quot;test@mail.com&quot;,&quot;password&quot;:&quot;anything&quot;}&#39;</pre><h3>2. Hard-coded Credentials</h3><h3>Example</h3><pre>if (user === &#39;admin&#39; &amp;&amp; password === &#39;letmein&#39;) {<br>  // Grant access<br>}</pre><h3>Danger</h3><p>Full account takeover or database leaks.</p><h3>Detection</h3><pre>git grep -i &quot;password\|passwd\|secret\|apikey\|token&quot;<br># Use tools like git-secrets, truffleHog, detect-secrets</pre><h3>3. Debug / Maintenance Endpoints</h3><h3>Example</h3><pre>app.get(&#39;/debug&#39;, (req, res) =&gt; {<br>  res.send(&#39;Debug information&#39;);<br>});</pre><h3>Danger</h3><p>Remote control of the application.</p><h3>Detection</h3><pre># Enumerate routes and search for debug endpoints<br>grep -r &quot;app.get(&#39;/debug&#39;&quot; .</pre><h3>4. Hidden Admin Panels / Unlinked Pages</h3><h3>Example</h3><pre>app.get(&#39;/supersecret-admin&#39;, (req, res) =&gt; {<br>  res.send(&#39;Admin Panel&#39;);<br>});</pre><h3>Danger</h3><p>Discovery via crawling or leaked URL.</p><h3>Detection</h3><pre># Run directory fuzzing<br>ffuf -u http://example.com/FUZZ -w /path/to/wordlist.txt<br># Review routing table</pre><h3>5. Backdoor Shells / Eval Endpoints</h3><h3>Example</h3><pre>app.post(&#39;/eval&#39;, (req, res) =&gt; {<br>  const result = eval(req.body.cmd);<br>  res.send(result);<br>});</pre><h3>Danger</h3><p>Remote code execution. Critical.</p><h3>Detection</h3><pre>grep -r &quot;eval(\|exec(\|spawn(\|Function(\|system(&quot; .</pre><h3>6. Feature-flag Bypasses</h3><h3>Example</h3><pre>if (featureFlags.disableAuth) {<br>  // Skip authentication<br>}</pre><h3>Danger</h3><p>Flag leaks or default-on in production.</p><h3>Detection</h3><pre># Search config/flags<br>grep -r &quot;featureFlags&quot; .<br># Ensure flags are env-only and not controllable by users</pre><h3>7. Commented-out or Obfuscated Hints</h3><h3>Example</h3><pre>// TODO: Remove this backdoor before production<br>if (user === &#39;backdoor&#39;) {<br>  // Grant access<br>}</pre><h3>Danger</h3><p>Still visible to anyone.</p><h3>Detection</h3><pre>git grep &quot;TODO\|ABGR\|ROT13\|hack\|backdoor\|bypass&quot;</pre><h3>8. Default or Leftover Credentials in Dashboards</h3><h3>Example</h3><p>Grafana/Prometheus/Kibana left open with default credentials.</p><h3>Danger</h3><p>Data exfiltration, further pivoting.</p><h3>Detection</h3><pre># Audit services, try default logins, run port scans<br>nmap -sV -p 3000 example.com</pre><h3>9. Exposed Third-party Keys in Code</h3><h3>Example</h3><pre>const awsKey = &#39;AKIAIOSFODNN7EXAMPLE&#39;;</pre><h3>Danger</h3><p>Cloud takeover, monetary losses.</p><h3>Detection</h3><pre>git log -S &#39;AKIA&#39;<br># Use secrets scanners</pre><h3>10. CI/CD or Build-step Backdoors</h3><h3>Example</h3><p>Pipeline step that injects a backdoor binary.</p><h3>Danger</h3><p>Persistent backdoor in releases.</p><h3>Detection</h3><pre># Review CI configs<br>cat .github/workflows/deploy.yml<br># Check deployed artifacts against built-from-source hashes</pre><h3>11. Supply-chain / Malicious Dependency</h3><h3>Example</h3><p>npm package with hidden logic that exfiltrates secrets.</p><h3>Danger</h3><p>Wide blast radius.</p><h3>Detection</h3><pre># Dependency audit, lockfile reviews<br>npm audit<br># Review changelogs for unknown packages</pre><h3>12. Environment-only Bypasses</h3><h3>Example</h3><pre>if (process.env.NODE_ENV === &#39;development&#39;) {<br>  allowEverything();<br>}</pre><h3>Danger</h3><p>Conditional bypass executes in the wrong environment or env var leaked.</p><h3>Detection</h3><pre>grep -r &quot;NODE_ENV&quot; .</pre><h3>13. Cookie/session Tampering Shortcuts</h3><h3>Example</h3><pre>if (req.cookies.isAdmin === &#39;true&#39;) {<br>  // Grant admin access<br>}</pre><h3>Danger</h3><p>Client can flip it to gain rights.</p><h3>Detection</h3><pre># Review session handling and cookie trust logic<br>grep -r &quot;req.cookies&quot; .</pre><h3>14. Backdoor API Keys / Tokens with Broad Scope</h3><h3>Example</h3><p>A service token that returns user data if passed to any endpoint.</p><h3>Danger</h3><p>Anyone with the token gets everything.</p><h3>Detection</h3><pre># Audit token scopes, rotate tokens, search for tokens in code<br>grep -r &quot;API_KEY&quot; .</pre><h3>15. Telemetry / “Phone Home” Exfiltration</h3><h3>Example</h3><p>Telemetry endpoint that also accepts commands or leaks PII.</p><h3>Danger</h3><p>Data leaks and remote control channels.</p><h3>Detection</h3><pre># Network monitoring, inspect outbound requests<br>tcpdump -i any port 80</pre><h3>How to fix &amp; mitigate</h3><ol><li>Remove any header/key-based auth bypass in production code.</li><li>Rotate all secrets that may have been exposed (API keys, DB passwords, tokens).</li><li>Remove debug routes from production; if dev endpoints are necessary, put them behind VPN/internal IP or mTLS and never in /login.</li><li>Use server-side-only secrets<strong> </strong>(not client-supplied headers) and strong auth (HMAC, signed tokens).</li><li>Secrets scanning + pre-commit hooks (git-secrets, detect-secrets) to stop leaks.</li><li>Audit dependencies and CI configs. Lock versions and use SBOM.</li><li>Add logging &amp; alerting for suspicious bypass attempts.</li><li>Code review &amp; threat modeling — make backdoor checks part of security review.</li><li>Pen test / red-team: simulate discovery to understand blast radius.</li><li>Train devs: no secrets in code, no shortcuts in prod.</li></ol><h3>Conclusion</h3><p>Backdoors can be subtle and hard to detect, but with the right tools and practices, you can identify and mitigate these vulnerabilities. Regular code reviews, secrets scanning, and environment configuration checks are essential to maintaining a secure application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fd80f818a01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why vulnerabilities exist]]></title>
            <link>https://medium.com/@80h3m14n/why-vulnerabilities-exist-af9013dd9968?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/af9013dd9968</guid>
            <category><![CDATA[computer-security]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[computer-hardware]]></category>
            <category><![CDATA[why-vulnerabilities-exist]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 15:07:02 GMT</pubDate>
            <atom:updated>2025-10-22T15:07:02.956Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital landscape, software vulnerabilities are an inevitable reality. From major corporations to individual developers, no system is immune to the risks posed by flaws in code, design, or infrastructure.</p><p>Understanding why these vulnerabilities exist is crucial for building more secure systems.</p><h4>Core causes of vulnerabilities</h4><ol><li><strong>Human error</strong> — People mess up logic, assumptions, or validation.</li><li><strong>Complexity overload</strong> — Modern systems are built on layers of other systems (OS, firmware, APIs, libraries, dependencies).</li><li><strong>Speed over security</strong> — Companies push features fast to beat competition. Security usually gets patched <em>after</em> release instead of being built-in.</li><li><strong>Legacy code</strong> — Old, unmaintained code is everywhere, still running core stuff. Nobody wants to touch it because it’s “working”.</li><li><strong>Poor threat modeling</strong> — Developers design for functionality, not for adversarial thinking.</li><li><strong>Hardware flaws are permanent</strong> — You can’t patch a CPU the way you patch software.</li><li><strong>Open source ≠ always secure</strong> — Even open code can be overlooked.</li><li><strong>Economics</strong> — Security doesn’t make money unless something breaks. So budgets go to features, not to hardening systems.</li></ol><h4>Mitigation strategies</h4><p>These are best practices for developers and organizations to reduce the risk of vulnerabilities.</p><ul><li>Automated code reviews and static analysis</li><li>Regular security training for developers</li><li>Adopting secure development lifecycle (SDLC) practices</li><li>Using tools for dependency management and vulnerability scanning</li></ul><h4>Conclusion</h4><p>Vulnerabilities are not just a technical issue — they are a product of human behavior, system complexity, and economic priorities. While no system can be completely free of flaws, awareness and proactive measures can significantly reduce the risks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af9013dd9968" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password protection mechanisms]]></title>
            <link>https://medium.com/@80h3m14n/password-protection-mechanisms-cfa004cf2441?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfa004cf2441</guid>
            <category><![CDATA[password-cracking]]></category>
            <category><![CDATA[password-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 05:48:52 GMT</pubDate>
            <atom:updated>2025-10-12T05:48:52.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Several methods are used by different applications to secure password storage and transmission from possible attackers.</p><p>Here is a curated list of most commonly used techniques (some are used in combination with one another i.e MFA)</p><h4><strong>Common methods for storing/protecting passwords</strong></h4><h4>1. Salted hashes</h4><p>A salt (unique per user) is appended/prepended to the password before hashing to stop rainbow-table attacks. Almost always used with a hash/KDF.</p><h4>2. Key-derivation functions (KDFs) / slow hashes</h4><p>Hashes such as <em>PBKDF2, bcrypt, scrypt, Argon2 </em>are designed to be slow and/or memory-hard to make brute force expensive. Best practice for password storage.</p><h4>3. Pepper</h4><p>Like a salt but “<em>global”</em> and secret (stored separately, e.g., in app config or HSM). Adds extra defense if DB is leaked but pepper is protected.</p><h4>4. Salt + KDF + pepper (combined pattern)</h4><p>Per-user salt + slow KDF + server-side pepper stored in HSM/KMS. Strong practical setup.</p><h4>5. HMAC / keyed hashing</h4><p>Use an HMAC with a secret key to derive/verifiy values. Not a replacement for KDFs for passwords, but used in some auth schemes or token derivations.</p><h4>6. Encryption (reversible)</h4><p>Passwords encrypted with symmetric keys (AES) and stored. Used when you <strong>MUST</strong> recover the plaintext (rare + risky). Keys must be stored securely (HSM/KMS). Not recommended unless absolutely necessary.</p><h4>7. Hardware Security Modules / Key Management Services (HSM / KMS)</h4><p>The system stores keys or even password verifiers inside HSMs or cloud KMS; operations (verify/decrypt) happen inside the secure boundary so raw secrets never leave the module.</p><h4>8. Secret sharing / split secrets</h4><p>Shamir’s Secret Sharing or splitting keys across systems/teams so no single compromise reveals the secret.</p><h4>9. Password vaults / managers (external storage)</h4><p>Store credentials in dedicated vault solutions (HashiCorp Vault, AWS Secrets Manager). The app fetches secrets at runtime with tight IAM controls.</p><h4>10. Tokenization / session tokens (don’t store the password)</h4><p>Exchange a password for a token (JWT, opaque session ID) and store the token instead of password. If token leaks, you can revoke/rotate it.</p><h4>11. Passwordless / public-key authentication</h4><p>Replace passwords with key pairs (SSH keys, WebAuthn, client certs). The server stores public keys (not passwords). Much safer.</p><h4>12. One-time passwords (OTP) / TOTP / HOTP</h4><p>Systems may store a shared secret used to generate OTPs (TOTP seeds). Storage must be protected, but attacker can’t reuse old OTPs.</p><h4>13. Zero-knowledge / PAKE protocols</h4><p>SRP, OPAQUE, SPAKE2: allow authentication without server learning the password and without sending it over the network. Server stores verifiers, not plaintext.</p><h4>14. Kerberos / derived keys</h4><p>Passwords are used to derive keys (not stored as plaintext). Tickets/keys are used for auth instead of resending credentials.</p><h4>15. Biometric templates</h4><p>Systems store processed biometric templates (not raw biometric data). These are often hashed or transformed and protected like passwords.</p><h4>16. Derived hashes for offline verification (e.g., PBKDF2 iterations stored with metadata)</h4><p>Stores metadata (salt, iterations, algorithm) alongside the hash so verification can be done safely and algorithm parameters can evolve.</p><p>The end</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfa004cf2441" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Security Framework]]></title>
            <link>https://medium.com/@80h3m14n/linux-security-framework-795ac818add8?source=rss-5b1bf1d5eeb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/795ac818add8</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[os-security]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[80h3m14n]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 14:49:49 GMT</pubDate>
            <atom:updated>2026-10-26T08:45:09.579Z</atom:updated>
            <content:encoded><![CDATA[<p>Linux has a layered and modular security model, using various kernel features and security modules to protect against a wide range of threats and vulnerabilities.</p><ul><li><a href="https://elixir.bootlin.com/linux/v6.4/source/security">Bootlin Elixir cross referencer Linux security</a></li></ul><h4><strong>Security best practices</strong></h4><p>- Always apply updates regularly `sudo apt update &amp;&amp; sudo apt upgrade`</p><p>- Use SSH keys instead of passwords for remote logins</p><p>- Limit sudo access, and enforce strong password policies.</p><p>- Audit your system regularly</p><p>- Enable and configure firewalls to block unwanted traffic</p><h4><strong>Kernel-level / system hardening</strong></h4><p>Kernel access control tools<br>1. Mandatory Access Control (MAC)<br>- SELinux<br>- AppArmor<br>- TOMOYO<br>- Simplified MAC Kernel (Smack)</p><p>2. System call filter<br>- Berkeley Packet Filter (BPF)<br>- Extended Berkeley Packet Filter (eBPF)<br>- Seccomp-BPF<br>- BPF-LSM</p><p>3. Process control <br>- kexec Restriction<br>- Grsecurity<br>- Yama<br>- Landlock</p><p>3. Kernel lockdown <br>- Lockdown</p><p>4. Kernal module control<br>- LodPin</p><p>5. UID/GID<br>- SafeSetID</p><p>6. File integrity check<br>- IMA/EVM</p><p>7. Isolation<br>- Namesapaces<br>- Cgroups</p><p>8. Privilege boundary enforcement technique</p><p>- Supervisor Mode Execution Protection (SMEP)<br>- Supervisor Mode Access Prevention (SMAP)<br>- Kernel Page Table Isolation (KPTI)</p><p>9. Memory Safety / Exploit Mitigations</p><p>These are compile-time and runtime protections against memory corruption exploits (ROP, JOP, use-after-free, info leaks):</p><p>- KASLR (`RANDOMIZE_BASE`, `RANDOMIZE_MEMORY`): Randomizes kernel and module load addresses at boot<br>- Stack canaries (`STACKPROTECTOR_STRONG`, per-task): Detects stack buffer overflows before return<br>- CFI (`CFI_CLANG` / kCFI): Compiler-enforced Control Flow Integrity; validates indirect call targets<br>- Intel CET — IBT (`X86_KERNEL_IBT`): Hardware Indirect Branch Tracking; requires ENDBR landing pads<br>- Intel CET — Shadow Stack (`X86_USER_SHADOW_STACK`): Hardware shadow stack protecting return addresses (userspace since 6.6; kernel-mode is an active RFC as of Oct 2026) <br>- ARM PAC / BTI (`ARM64_PTR_AUTH`, `ARM64_BTI`): Pointer Authentication + Branch Target Identification on ARMv8.3+<br>- Shadow Call Stack (`SHADOW_CALL_STACK`, arm64): Software shadow stack for return addresses when PAC unavailable<br>- FORTIFY_SOURCE / FORTIFY_KERNEL: Compile-time bounds checking on `memcpy`, `strcpy`, etc. <br>- HARDENED_USERCOPY: Whitelist-based validation of `copy_to_user`/`copy_from_user` ranges<br>- Slab hardening (`SLAB_FREELIST_HARDENED`, `SLAB_FREELIST_RANDOM`): Obfuscates and randomizes slab freelist metadata<br>- STRICT_KERNEL_RWX / STRICT_MODULE_RWX: Makes kernel/module text read-only, data non-executable<br>- INIT_STACK_ALL_ZERO: Zeroes the entire kernel stack frame (kills uninitialized info leaks)<br>- MTE (`ARM64_MTE`): ARM Memory Tagging Extension — hardware use-after-free detection<br>- KASAN / KMSAN / KFENCE: Kernel Address/Memory Sanitizer / KFENCE — runtime bug detection (debug/hardened builds)</p><p>10. Speculation Control (beyond KPTI)</p><p>KPTI is one piece; the full Spectre/Meltdown mitigation stack includes:</p><p>- IBRS / IBPB — Indirect Branch Restricted/Prediction<br>- STIBP — Single-Thread Indirect Branch Predictors<br>- Retpolines (`RETPOLINE`) — Software retpolines for Spectre v2<br>- SLS (`MITIGATION_SLS`) — Straight-Line Speculation mitigation<br>- SSBD — Speculative Store Bypass Disable<br>- L1D flush — L1 Data cache flush on VM exit</p><p>11. Boot &amp; Firmware Integrity</p><p>- Secure Boot — signed bootloader chain<br>- Measured Boot / TPM — hashes each boot stage into TPM PCRs<br>- Kernel module signing (`MODULE_SIG`, `MODULE_SIG_FORCE`) — rejects unsigned modules at load</p><p>12. Attack Surface Reduction (sysctl / runtime)</p><p>These are the runtime knobs that complement the compile-time features:</p><p>- `kernel.kptr_restrict=2` — hide kernel pointers from `/proc`<br>- `kernel.dmesg_restrict=1` — restrict `dmesg` to root<br>- `kernel.unprivileged_bpf_disabled=1` — block unprivileged eBPF<br>- `kernel.unprivileged_userns_clone=0` — disable unprivileged user namespaces<br>- `io_uring` restrictions (disable or limit for unprivileged)<br>- Trusted Path Execution — only execute setuid binaries from trusted paths<br>- `/proc` and `/sys` hardening — restrict access to sensitive nodes</p><p><strong>Seccomp-BPF</strong></p><p>Seccomp (Secure Computing Mode) is a kernel feature that filters system calls a process can make.</p><p>The BPF (Berkeley Packet Filter) extension allows fine-grained, programmable syscall filtering.</p><p>- <a href="https://ebpf.io/">eBPF</a><br>- <a href="https://ebpf.party/">eBPF party</a></p><p>eBPF (extended Berkeley Packet Filter) allows for the efficient and safe execution of custom programs in response to various events, such as network packets, system calls, or tracepoints.</p><pre>sudo apt-get install bpftrace clang<br>sudo bpftool version<br>clang -O2 -target bpf -c mpf.c -o mpf.o<br>sudo mount -t bpf bpf /sys/fs/bpf</pre><p>Used to reduce the attack surface.</p><p>Ideal for sandboxing apps like browsers, containers, and runtimes.</p><pre>// Enable seccomp filter<br>prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);<br>prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &amp;prog);</pre><p>Use tools like `seccomp-tools` or `libseccomp` to build and inspect filters.</p><p><strong>Security-Enhanced Linux (SELinux)</strong></p><p>A powerful MAC (Mandatory Access Control) system developed by the NSA used in Red Hat-based distributions.</p><p>SELinux controls how processes interact with each other and with system resources beyond normal Unix permissions.</p><p>- <a href="https://github.com/SELinuxProject/selinux">SELinux project</a></p><p>Functionalty:<br>- Multi-Level Security (MLS)/Multi-Category Security (MCS)<br>- Mandatory Access Control (MAC)<br>- Role-Based Access Control (RBAC)<br>- Type Enforcement (TE): applications whitelisting</p><pre># Enable/disable SELinux<br>sestatus [-b -v 0 1]<br>getenforce<br># SELinux Booleans<br>semanage -o<br>getsebool -a | grep virt<br># Set to permissive (0) or enforcing (1)<br>sudo setenforce 0 # or 1<br># View SELinux context<br>ls -Z<br>ps auxZww<br># Temporarily change context<br>chcon<br># Restore default context<br>restorecon</pre><p>Objects are anything on the OS: Files, devices, sockets, processes</p><pre>ps -eZ | grep httpd<br>ls -dZ /var/www/html<br>id -Z</pre><p>The `z` flag displays the SELinux context information.</p><p>SELinux basically isolates and protect system components from one another.</p><p><strong>AppArmor</strong></p><p>AppArmor is a Mandatory Access Control (MAC) system that’s easier to use than SELinux and focuses on per-application profiles i.e profile-based access control to restrict what applications can access.</p><pre># Show loaded profiles<br>sudo aa-status<br># Put profile into complain mode<br>aa-complain /path<br># Enforce a profile<br>aa-enforce /path<br># AppArmor profiles<br>cat /etc/apparmor.d/</pre><p><strong>TOMOYO Linux</strong></p><p>An early MAC framework, using <strong>path-based </strong>access control with a simple policy language. Less common today.</p><pre># Initialize TOMOYO<br>tomoyo-init</pre><p>✅ Simple for embedded systems or legacy deployments.</p><p><strong>Simplified MAC Kernel (SMACK)</strong></p><p>SMACK uses labels to manage access control, aiming for simplicity.</p><pre># Check SMACK status<br>cat /sys/fs/smackfs/loaded</pre><p>✅ Used in embedded systems like Tizen OS. Not as widely supported as SELinux/AppArmor.</p><p><strong>LoadPin</strong></p><p>Prevents the kernel from loading modules or files unless they come from a specific, trusted filesystem (e.g., `/boot` or an initramfs).</p><ul><li>Once a module is loaded from a “pinned” mount, the kernel blocks loading from anywhere else.</li><li>Helps harden container and embedded setups.</li></ul><p><strong>Yama</strong></p><p>Enhances ptrace and other user namespace isolation features.</p><pre># Restrict ptrace to only parent/child processes<br>sysctl -w kernel.yama.ptrace_scope=1</pre><p>Levels:</p><p>1. `0` = classic behavior<br>2. `1` = restricted to parent processes (default in many distros)<br>3. `2` = admin-only ptrace<br>4. `3` = no ptrace at all</p><p>✅ Lightweight protection against snooping/debugging attacks.</p><p><strong>SafeSetID</strong></p><p>Restricts which UIDs/GIDs a process can switch to, reducing risks from `setuid` binaries.</p><ul><li>Used for container isolation and sandboxed environments.</li><li>Requires configuration of allowed transitions.</li></ul><p>✅ Helps lock down service users and container runtimes.</p><p><strong>Lockdown Mode</strong></p><p>Introduced in Linux 5.4+, the <strong>Lockdown LSM</strong> restricts access to kernel internals even for root, especially in UEFI Secure Boot systems.</p><p>Boot-time kernel parameters:</p><pre># Block kernel memory access<br>lockdown=integrity<br># Stricter mode, blocks more actions<br>lockdown=confidentiality</pre><p>✅ Meant to prevent rootkits and kernel tampering post-boot.</p><p><strong>GRSEC/PaX</strong></p><ul><li>Patchset for kernel hardening (used to be open, now commercial).</li><li>Provides memory protection, address space layout randomization (ASLR), etc.</li></ul><p>✅ Used in Hardened Gentoo and some CTF setups.</p><p><strong>IMA/EVM (Integrity Measurement Architecture / Extended Verification Module)</strong></p><ul><li>Cryptographically verifies the integrity of files and kernel modules.</li><li>Protects against unauthorized changes.</li></ul><p><strong>Kexec file load Restriction</strong></p><p>Disables loading arbitrary kernels from userland (`kexec`), often locked down in Secure Boot setups.</p><p><strong>Privilege boundary enforcement technique</strong></p><p>Privilege boundary enforcement techniques are techanisms that enforce the separation between user space (Ring 3) and kernel space (Ring 0) to prevent privilege escalation and information leakage.</p><p>1. Supervisor Mode Execution Protection (SMEP: Blocks kernel execution of user-space code, Hardware (CPU), Sets user pages as non-executable in CR4 bit 20.<br>2. Supervisor Mode Access Prevention (SMAP): Blocks kernel read/write to user-space data, Hardware (CPU), Sets user pages as inaccessible in CR4 bit<br>3. Kernel Page Table Isolation (PTI: Prevents speculative side-channel leaks ,Software (OS) , Maintains separate user/kernel page table hierarchies.</p><pre>grep -oE &#39;smep|smap|pti&#39; /proc/cpuinfo | sort -u<br>cat /proc/cmdline<br>cat /sys/kernel/security/lsm 2&gt;/dev/null<br>cat /sys/devices/system/cpu/vulnerabilities/meltdown 2&gt;/dev/null</pre><p>They sit alongside other mitigations like KASLR (randomization) and stack canaries (integrity checks) as layers of defense-in-depth for the kernel.</p><h4><strong>User-level security</strong></h4><p>1. Authentication &amp; Access control<br>- Pluggable Authentication Modules (PAM)<br>- Discretionary Access Control (DAC)<br>- Access Control Lists (ACLs)<br>- Secure shell</p><p>2. Binary (executables) security</p><p>- Memory randomization (ASLR)<br>- Binary hardening (RELRO, PIE)<br>- Buffer overflow guard (Stack Canaries)<br>- Memory execution protection( NX Bit, DEP)</p><p>3. Filesytem security<br>- Full disk encryption (FDE)<br>- Data at rest encryption<br>- Hardware-based FDE/Self-Encrypting Drive (SED)</p><p>4. Network &amp; services security<br>- TCP wrappers<br>- Firewall<br>- Port knocking</p><p>5. System auditing<br>- File integrity monitoring<br>- Intrusion detection</p><p>6. Monitoring &amp; logging<br>- System logs<br>- Journalctl</p><p>7. Container &amp; virtualization security<br>- Namespaces<br>- Control groups (Cgroups)</p><p><strong>1. Authentication &amp; Access control</strong></p><p>These are the foundational building blocks of Linux security, every user, service, or attacker has to go through this layer first.</p><p><strong>Authentication mechanisms</strong></p><p>1. Username + Password</p><p>2. Pluggable Authentication Modules (PAM)</p><p>3. Secure shell (SSH keys)</p><p>4. Multi Factor Authetication (MFA)</p><p>Linux supports multiple authentication systems, usually via PAM (Pluggable Authentication Modules):</p><ul><li>`pam_unix` — standard local password auth</li><li>(`/etc/passwd` + `/etc/shadow`)</li><li>`pam_tally2` — account lockout after X failed attempts</li><li>`pam_faillock` — similar but more modern</li><li>`pam_google_authenticator` — adds 2FA</li><li>SSH key authentication — passwordless and more secure</li></ul><pre># Check PAM config<br>cat /etc/pam.d/common-auth<br>authselect check<br>authselect current<br>ls -alZ /lib*/security<br># View failed login attempts<br>sudo faillock - user [user-name]<br>sudo lastb<br>sudo journalctl | grep -i &quot;failed.*password&quot;<br># Login access control table<br>cat /etc/security/access.conf</pre><p><strong>Reset forgotten Linux user password</strong></p><p>Reboot your system, at GRUB menu, press `e` to edit the boot entry, find the line starting with Linux — it looks like: `linux /boot/vmlinuz-… root=UUID=… ro quiet splash`</p><p>Replace `ro quiet splash` with: `rw init=/bin/bash`</p><p>Press `Ctrl + X` or `F10` to boot with these settings into the root shell.</p><p>Mount the root FS as read-write (if not already):</p><pre>mount -o remount,rw /</pre><p>Reset your user password:</p><pre># Reset password<br>passwd your_username</pre><p>After that:</p><pre>sync<br>reboot -f</pre><p>🔄 Done<br>You’re back in. If you don’t see the GRUB menu, hold Shift (on BIOS) or Esc (on UEFI) right after powering on.</p><p>🔐<strong> Encrypted Disk + Dual Boot Password Reset</strong></p><p>1. Reboot and open GRUB</p><p>Reboot your PC, when you hit the GRUB menu, use arrow keys to highlight the Linux entry (usually first).</p><p>Press `e` keyboard key to edit.</p><p>2. Modify boot parameters<br>Find the line starting with:</p><pre>linux /boot/vmlinuz-…</pre><p>At the end of that line, replace `ro quiet splash` with `rw init=/bin/bash`</p><p>3. Unlock LUKS manually (if needed)<br>If the initrd doesn’t auto-unlock the disk, it’ll boot into a shell with an encrypted root — in that case:</p><p>Run:</p><pre>cryptsetup luksOpen /dev/sdXY cryptroot</pre><p>Replace `/dev/sdXY` with your encrypted partition (like `/dev/sda3`). If unsure, run `lsblk -f`. Look for something with `crypto_LUKS`</p><p>Then:</p><pre>mount /dev/mapper/cryptroot /mnt<br>mount - bind /dev /mnt/dev<br>mount - bind /proc /mnt/proc<br>mount - bind /sys /mnt/sys<br>chroot /mnt</pre><p>4. Reset the password<br>Once inside the chroot:</p><pre># reset password<br>passwd your_username</pre><p>5. Cleanup and reboot</p><pre>exit<br>reboot -f</pre><p>Notes:<br>- If GRUB doesn’t show, press Shift (BIOS) or Esc (UEFI) at boot.<br>- If you’re using LVM on LUKS, you’ll need to activate it:</p><pre># Activate LVM<br>vgchange -ay</pre><p><strong>User permissions</strong></p><p>Discretionary Access Control (DAC)</p><p>1. Root user — full privileges</p><p>2. Standard user</p><p>3. Normal user</p><p>Controls who can read/write/execute files or run commands:</p><pre># See file perms<br>ls -l /path<br># Make file executeable<br>chmod +x file<br># Change ownership<br>chown user:group<br># Add user to a group<br>usermod -aG sudo John</pre><p>- /etc/passwd — stores user info<br>- /etc/shadow — stores password hashes<br>- /etc/sudoers — controls who can run sudo</p><p>✅ Essential for hardening users, managing privileges, and limiting access.</p><p><strong>User management</strong></p><pre>sudo su<br>sudo adduser [username]<br>sudo passwd [username]</pre><p><strong>Access Control Lists (ACLs)</strong></p><p>ACLs offer fine-grained control over file permissions beyond the traditional user/group/others model.</p><pre># Disable login<br>usermod -s /usr/sbin/nologin username<br># Lock an account<br>sudo usermod -L username<br># Unlock an account<br>sudo usermod -U username<br># Restrict who can use sudo<br>sudo visudo</pre><p>✅Standard users are required to run commands with the sudo prefix for system level tasks</p><p>✅Do not log in as root unless you must</p><p><strong>Secure shells</strong></p><p>- SSHGuard<br>- DenyGosts<br>- Fail2ban<br>- Teleport</p><pre># SSH key auth<br>sudo nano /etc/ssh/sshd_config<br># Change or add the line:<br>Port 2222</pre><p><strong>Binary (executables) security</strong></p><p>1. Memory randomization <br>- ASLR</p><p>2. Binary hardening <br>- RELRO<br>- PIE</p><p>3. Buffer overflow guard <br>- Stack Canaries</p><p>4. Memory execution protection<br>- NX Bit<br>- DEP</p><pre># Check binary security<br>checksec - file ./[binary]</pre><p><strong>Address Space Layout Randomization (ASLR)</strong></p><p>Randomizes memory locations of stack, heap, libs.</p><pre>cat /proc/sys/kernel/randomize_va_space</pre><p><strong>NX (No eXecute) Bit / DEP (Data Execution Prevention)</strong></p><p>Stops execution of code from data-only memory areas.</p><p><strong>Stack Canaries</strong></p><p>Detect buffer overflows before they overwrite return addresses.</p><p><strong>RELRO (Read-Only Relocations)</strong></p><p>Protects GOT from overwrite attacks. Partial or full.</p><p><strong>PIE (Position Independent Executable)</strong></p><p>Makes the binary relocatable (required for full ASLR).</p><h4><strong>File system security</strong></h4><p>Encryption makes all data on the drive instantly unreadable without the encryption key</p><p>1. Full-disk encryption (FDE)<br>- LUKS (Linux Unified Key Setup)<br>- <a href="https://www.truecrypt.org/">Truecrypt</a><br>- <a href="https://www.mcafee.com/us/products/endpoint-encryption.aspx">McAfee Endpoint Encryption</a></p><p>2. Data at rest encryption<br>- dm-crypt<br>- fscrypt<br>- Shufflecake<br>- Gocryptfs<br>- CryFS<br>- eCryptfs<br>- SecureFS</p><p>3. Hardware-based FDE/Self-Encrypting Drive (SED)</p><p><strong>Mount options</strong></p><p>Use options like: `noexec,nosuid,nodev`</p><p>On `/tmp`, `/home`, or removable drives to block code execution and privilege abuse.</p><h4><strong>Network &amp; service security</strong></h4><p>- TCP wrappers<br>- Firewall<br>- Port Knocking</p><p><strong>TCP wrappers</strong></p><blockquote>Legacy, still usable for basic service access control via `/etc/hosts.allow` and /etc/hosts.deny</blockquote><p><strong>Firewall</strong></p><p>Control incoming/outgoing traffic.</p><p><strong>Popular firewalls</strong></p><p>- `ufw`<br>- [firewalld](<a href="http://firewalld.org/">http://firewalld.org</a>)<br>- `iptables` (legacy)<br>- `nftables`<br>- CSF<br>- Gufw<br>- OpenSnitch<br>- VyOS</p><pre># 1.ufw<br>sudo apt install ufw<br>sudo ufw -h<br>sudo ufw enable<br>## block/allow service on specified port<br>sudo ufw deny 23<br>sudo ufw allow ssh<br># 2. firewalld<br>sudo firewalld -h<br>sudo firewall-config<br>sudo firewall-cmd - state</pre><p><strong>Port knocking</strong></p><p>Obscure service ports until the correct “knock” sequence is received.</p><h4><strong>Security auditing</strong></h4><p>File integrity monitoring<br>- Tripwire<br>- Auditd<br>- OSSEC<br>- OSQuery<br>- OpenSCAP<br>- GVM</p><p>Intrusion detection<br>- AIDE<br>- Snort<br>- Suricata<br>- Zeek<br>- Wazuh</p><p><strong>Auditd</strong></p><p>Tracks system events (file access, logins, etc.)</p><pre>sudo apt install auditd<br>sudo systemctl enable auditd<br># View recent audit logs<br>sudo ausearch -x sshd<br># Full audit log<br>sudo less /var/log/audit/audit.log<br># list audit rules<br>auditctl -l<br># search for bash events<br>ausearch -x bash</pre><p><strong>Monitoring &amp; logging</strong></p><p>Regular monitoring and logging are essential for detecting and responding to security incidents.</p><p>- System logs<br>- Journalctl</p><p><strong>System logs</strong></p><pre># Kernel Logs<br>cat /var/log/kern.log<br># System Logs<br>cat /var/log/syslog<br># Authentication Logs<br>cat /var/log/auth.log<br># Application Logs<br>cat /var/log/apache2/error.log<br>cat /var/log/mysql/error.log<br># Security Logs<br>cat /var/log/fail2ban.log<br>cat /var/log/ufw.log</pre><p><strong>Journalctl</strong></p><pre>sudo journalctl -xe</pre><p><strong>Setting up log rotation</strong></p><pre>sudo nano /etc/logrotate.conf</pre><p><strong>Fail2ban</strong></p><p>Fail2ban protects your system from brute-force attacks by monitoring logs and blocking suspicious IP addresses.</p><pre>sudo apt install fail2ban<br>sudo nano /etc/fail2ban/jail.local</pre><h4><strong>Container &amp; virtualization security</strong></h4><p>Tools<br>- Calico<br>- Clair<br>- Grafeas<br>- Trivy<br>- Dockle</p><p><strong>Namespaces + Cgroups</strong></p><p>Namespaces is a kernel feature that provides isolation for process resources, such as process IDs, network interfaces, and file systems.</p><p>Control Groups (cgroups) is a kernel feature that allows the management and limitation of resources allocated to process groups, including CPU, memory, and I/O</p><p><strong>Security Modules (Seccomp, AppArmor, SELinux)</strong></p><p>The kernel’s security modules restrict the actions that can be performed within a container.</p><p>These modules enhance security by limiting the attack surface, making containers a more secure option for application deployment.</p><p><strong>Podman / Rootless containers</strong></p><p>Run containers as non-root user. <br>Safer than Docker with root daemon.</p><h4><strong>Other security mechanisms</strong></h4><ul><li>Sandboxing: bubblewrap, firejail, gVisor, Seccomp, Isolate, NsJail</li><li>PAM security limits: `/etc/security/`</li><li>Privilege management:`polkit`</li><li>VPN: StrongSwan, OpenVPN, WireGuard</li><li>WAFs: ModSecurity, Coraza</li><li>Patch management: Foreman, Katello, Uyuni</li><li>Password security: KeePassXC , VaultWarden</li><li>Modular sudo config:`sudoers.d`</li><li>Manage fine-grained capabilities: `capsh`, `setcap`</li></ul><p>The framework is genuinely defense-in-depth — hardware, kernel, userspace</p><p>The problem is fragmentation. Most of these features are off by default and require explicit opt-in (Kconfig flags, sysctls, boot parameters, LSM policy files)</p><p>The Linux Security Module framework is what makes the whole thing coherent. SELinux, AppArmor, TOMOYO, SMACK, Landlock, BPF-LSM — they all plug into the same hooks. This is architecturally elegant: one mediation point, multiple policy engines. The tradeoff is that stacking multiple LSMs (e.g., SELinux + Landlock + BPF-LSM) creates a policy composition problem — interactions between layers can be subtle and hard to reason about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=795ac818add8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>