InfoSecTube
1.7K subscribers
681 photos
44 videos
273 files
1.71K links
Subscribe to this channel if… you enjoy fun and educational videos about technology & CyberSecurity & ...
YouTube Channel:
https://youtube.com/c/InfoSecTube


Contact:
@InfoSecTube_Bot
Download Telegram
🔍 Scenario: Protocol Misuse in IoT Smart Locks

🔐 The lock uses TLS to talk to the cloud — sounds secure, right?
😬 But all devices share the same certificate & private key!

🚨 What could go wrong?


🧨 One device hacked = all locks compromised
🔓 Attacker can impersonate any lock
📡 Can decrypt all traffic
Breaks confidentiality, authenticity
🔗 Violates P1: Security is a Weakest-Link Problem

🛠 Fix it:

Give each device a unique key pair & certificate
Use a manufacturer CA
Or deploy short-lived certs + secure enrollment

Don’t let convenience destroy security!

#IoTSecurity #TLS #PKI #DeviceSecurity #SmartLock #CyberSecurity #ZeroTrust #SecurityPrinciples #WeakestLink #InfoSec

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
مفهومِ Mixture-of-Recursions (MoR) در حوزه مدل‌های زبانی بزرگ خلاصه‌اش اینه که MoR با استفاده از یک روش هوشمندانه فقط برای «توکن‌های سخت‌تر» از پردازش عمیق‌تر استفاده می‌کنه ... یعنی اون بخش‌هایی از متن که نیاز به دقت بیشتر دارن، چند بار در یک بلاک پردازشی مشترک چرخ داده می‌شن.

🧠 نکات جالب مقاله:


فقط از یک بلاک ترنسفورمر مشترک استفاده می‌شه.

برای توکن‌هایی که «نیاز به فکر بیشتری» دارن، اون بلاک چند بار تکرار می‌شه.


نتیجه: مدل با نصف تعداد پارامترها و دو برابر سرعت، کیفیت مشابه یا حتی بهتر می‌ده!

این روش مثل داشتن soft experts برای توکن‌های چالش‌برانگیز عمل می‌کنه. ایده‌ای خلاقانه‌ست که باعث می‌شه محاسبات فقط جایی استفاده بشن که واقعاً لازمن.

https://www.alphaxiv.org/abs/2507.10524
🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🔎 Vulnerability Assessment: Security Check-Up Time

Think of this like a routine health check — but for your network.
No breaking in, no stress tests — just a scanner asking politely:
🗣 “Hey... is this door locked? Are you running outdated software?”

📘 “Vulnerability scanners check for known weaknesses, misconfigurations, or missing patches in target systems.”

🩺 What It Does:

Scans your systems for known vulnerabilities (e.g., CVEs)

Flags misconfigurations, weak SSL settings, or unpatched services

Usually non-intrusive — it checks, but doesn’t poke too hard

Perfect for regular security hygiene

🧪 Real-World Examples:

🛠 Nessus finds a Windows server missing a critical SMB patch

🔓 OpenVAS detects open ports running outdated FTP

🔐 Qualys warns about weak TLS ciphers and exposed admin panels

⚠️ What It Doesn't Do:

It doesn’t exploit — just detects

It won’t find zero-days or custom misconfigurations

Results still need a human touch to triage and fix

🧩 TL;DR
A vulnerability scanner is like a security X-ray — it shows you the weak spots before an attacker does.
Run them regularly. Patch what they find. Repeat. 🔁

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
📚 OS Concepts — What is Journaling in File Systems? 🧾💾
Ever wondered how your file system survives a crash without losing everything? Meet journaling!

🔹 What is Journaling?
It’s like a safety notebook 📝
📍 The OS logs (journals) changes before doing them for real
🧯 Helps recover cleanly after a crash!

🔧 How it works:

Log operation to the journal

Apply changes to disk

On crash: Use journal to replay or rollback

📌 Types:

🟢 Writeback → Metadata only

🟡 Ordered → Metadata first, then data

🔴 Full → Metadata + data (most reliable)

Used in:

ext3, ext4, xfs, NTFS
Not in ext2, FAT32

🧠 Journaling = Crash-proof file system!

#OS #Journaling #FileSystem #ext4 #CrashRecovery #InfoSecTube

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🛡 HSTS: HTTP Strict Transport Security – Your Silent TLS Bodyguard 🔐🌐

HSTS (HTTP Strict Transport Security) is a web security policy mechanism that helps protect websites and users from protocol downgrade attacks and cookie hijacking.

🔧 What Does HSTS Do?

When a site sends an HSTS header like:


Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

…it tells browsers:

Only connect via HTTPS (not HTTP)
Never allow fallback to insecure HTTP
Enforce this policy for a set time (e.g., 1 year)
Optionally apply to subdomains
Preload it into browsers for instant protection

🛠 HSTS as a Tool for TLS Hardening
Think of HSTS as a lock-in tool for HTTPS:


🔒 Prevents SSL stripping (e.g., in a Man-in-the-Middle attack)
🚫 Blocks attempts to downgrade to HTTP
📦 Helps secure cookies and authentication tokens
📈 Boosts TLS adoption and trustworthiness of your domain



🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🔴 افزایش امنیت APIها با Token-Based Authentication و JWT

🔸 یکی از مهم‌ترین دغدغه‌های توسعه‌دهندگان در طراحی سرویس‌های مبتنی بر وب، حفظ امنیت ارتباط بین کلاینت و سرور است. احراز هویت مبتنی بر توکن، راهکاری مدرن برای حل این چالش محسوب می‌شود.

🔹 در سیستم Token-Based Authentication، پس از ورود موفق کاربر، سرور یک توکن رمزنگاری‌شده به نام JWT (JSON Web Token) تولید و به کلاینت ارسال می‌کند. این توکن شامل اطلاعات کاربر و تاریخ انقضا بوده و در هر درخواست بعدی، به‌همراه درخواست به سرور ارسال می‌شود. برخلاف کوکی‌ها، JWT نیازی به ذخیره شدن در سرور ندارد، بنابراین ساختار stateless برای سرورها فراهم می‌شود که در مقیاس‌های بالا بسیار مفید است. همچنین، استفاده از الگوریتم‌هایی مانند HS256 یا RS256 امنیت توکن‌ها را تضمین می‌کند.

⭕️ نتیجه ی نهایی این است که JWT با ترکیب سادگی، کارایی و امنیت، به استانداردی محبوب در توسعه‌ی APIهای مدرن تبدیل شده است.
🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🎓 Understanding fork(), exec(), and wait() in UNIX Shells
📟 #LinuxBasics #SyscallMagic #InfoSecTube

Ever wondered how a UNIX shell like bash runs your commands? 🧠 Let’s break it down:

🔧 The magic trio:


fork() ➡️ Creates a copy of the current process (called the child).

exec() ➡️ Replaces the child process with the desired program (e.g., ls, cat, etc).

wait() ➡️ Tells the parent to pause until the child is done.

This design gives shells superpowers:
Input/output redirection
Pipes (|)
Background jobs
No need to modify the original program


🧪 Example:
When you run:


ls -l | grep ".txt"

Here’s what happens behind the scenes:

The shell uses fork() to create two child processes.

One child exec()s ls -l, another exec()s grep ".txt".

A pipe connects their input/output.

The parent wait()s for both to finish.

🛠 By separating fork() and exec(), shells gain flexibility without touching the actual programs. That’s the UNIX philosophy: simple tools combined powerfully.

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
💥 Heap Spraying in Browser Exploits 🧠🌐

Heap spraying is a powerful exploitation technique used by attackers to increase the reliability of browser-based attacks — especially when targeting memory corruption vulnerabilities like use-after-free or buffer overflows.

🧪 What Is Heap Spraying?
It’s the process of filling the heap (memory) with large amounts of malicious code or data, hoping it lands at a predictable location in memory.

🔁 So when an exploit triggers a bug that hijacks execution (like a corrupted pointer), it will likely jump to the malicious payload planted by the attacker.

🌐 In Browser Exploits:
Heap spraying is commonly used with JavaScript in browsers:


var spray = unescape("%u9090%u9090%u4141..."); // NOP sled + shellcode
var mem = [];
for (var i = 0; i < 10000; i++) {
mem.push(spray + i); // Flood the heap
}

💣 When the vulnerability is triggered, the browser's execution flow is redirected into this "sprayed" memory zone.

⚠️ Why It’s Dangerous:
Can turn unstable crashes into reliable exploits

Used in drive-by downloads, malware injection, and zero-day attacks

Often combined with obfuscation to evade detection

🛡 Mitigations:
Memory randomization (ASLR)
Modern browsers have better memory handling
Deprecation of old plugins (e.g., Flash)
Use Content Security Policy (CSP) and sandboxing



#CyberSecurity #HeapSpraying #BrowserExploits #MemoryExploitation #WebHacking #InfoSec #JavaScriptSecurity #ZeroDay #ExploitDev #MalwareTechniques

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
1
🦺a datagram is a type of packet, specifically one used in a connectionless, best-effort delivery service like UDP. A packet, on the other hand, is a more general term for any unit of data transmitted across a network, regardless of whether it's a reliable or unreliable service.


🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🧑‍💻 How Does the OS Know Which Processes You Can Control?
📟 #UserPermissions #OSInternals #InfoSecTube

Every process in a computer has an owner — and that’s YOU (or another user). But how does the system know who owns what, and who can control what? 🤔

🔐 Enter the concept of a user in the operating system.

🧠 A user represents an identity — whether it’s you, root, or an automated service. The OS uses this to control access to processes, files, and system resources.

🔍 What It Means:

When you log in, the OS associates your session with a User ID (UID).

Any process you launch inherits your UID.

You can only manage processes that match your UID.

You cannot kill or modify another user's process — unless you’re root (admin).

👨‍🔧 Why It Matters:
This isolation is critical for security:
✔️ Prevents one user from interfering with others
✔️ Stops malware from hijacking system-wide processes
✔️ Enables true multi-user environments

🧪 Real Example:
You try to run:

kill 1234

If PID 1234 belongs to another user, the OS will block it:
Operation not permitted

But root can do it, because root is trusted with full control 🔓

🔐 In short:
🗝 Users define who can control what.
🧱 The OS enforces it — ensuring process isolation and security boundaries.

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🧵 What Is the Process API in an Operating System?

When writing programs, we often need to interact with the OS to create or manage processes. That’s where the Process API comes in. 🧠

⚙️ What’s in the Process API?
The Process API is a set of system calls that lets programs:

Create new processes (fork(), exec() in UNIX)

Destroy or terminate processes (exit(), kill())

Wait for a child process to finish (wait())

Query process info (like PID, status, etc.)

Control scheduling or priority (in some systems)

📦 These calls allow user-level programs to safely and efficiently manage process lifecycles without touching low-level hardware.

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
1
🛡 “Stop! I’ve Seen That Attack Before…”
Welcome to the world of Signature-Based Detection, where your security system acts like a bouncer with a wanted list at the door. 🕵️‍♂️🚪

👀 Imagine This:
You're running a nightclub (aka your network). Everything looks fine — until someone tries to sneak in using a fake ID.
Your bouncer pulls out a blacklist of known troublemakers. One glance at the photo, and — boom 💥 — they're caught.

That’s signature-based intrusion detection in a nutshell.

🧪 Real-World Example:
💻 An attacker launches a classic buffer overflow using shellcode like:
\x90\x90\x90\xeb\x1e\x5e\x31\xc0...

Your IDS (Intrusion Detection System) spots this exact byte pattern — one it knows from past attacks — and raises the alarm 🚨

Or maybe someone hits your login form with:


' OR '1'='1' --

Yep, another entry straight from the blacklist. Denied.

Why It’s Awesome:

Accurate against known threats

Low false positives — it only alerts when there's a match

Fast — no heavy analysis needed

But Beware:

Completely blind to zero-day attacks 🕳

Needs constant updates to stay effective (new threats = new signatures)

🧩 TL;DR
Signature detection is your network's memory of past attackers.
It’s brilliant at catching repeat offenders, but useless against strangers with new tricks.

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🧠 2. Copy-On-Write (COW)
🔍 What is it?
Copy-On-Write is a strategy where, instead of modifying data directly, you make a copy, modify that copy, and write it back, then update the pointer.

🧠 Used in:

File systems (e.g., ZFS, Btrfs)

Virtual memory (fork() with shared pages)

Key Idea:
Never overwrite old data → write to new location → then update the reference

📌 Example:
In COW file system:

Update a file → new blocks are allocated → old version is untouched

Ensures atomic writes → helps in crash recovery

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
What Is Forward Secrecy (PFS)?
What Is Forward Secrecy?
📘 “Forward secrecy ensures that the compromise of long-term private keys does not compromise past session keys.” — Chapter 4

🔐 In Simple Terms:
Forward Secrecy (aka Perfect Forward Secrecy or PFS) means:

Even if someone steals your private key later, they can’t decrypt your past conversations.

🧠 Why It Matters:
Without PFS:

Attacker records encrypted traffic today

Later steals the private key

Can decrypt everything retroactively 💥

With PFS:
Every session has its own ephemeral key
Past data stays safe even if your private key leaks later

🛡 This is critical for:

VPNs

Secure Messaging (Signal, WhatsApp)

HTTPS (TLS)

SSH

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🧠 Application-Level Firewall (Proxy): Smart Filtering at Layer 7
Unlike basic firewalls, this one actually reads your messages 👀
It knows what you’re saying — not just where it’s going.

📘 “An application-level proxy understands application protocols such as HTTP or FTP and can filter content or enforce policy.”


🎯 What It Does:


Operates at Layer 7 (Application Layer)

Parses full requests and responses

Enforces policy on content, not just ports

📐 How It Works:

Client connects to proxy (e.g., an HTTP proxy like Squid)

Proxy reads URLs, headers, file types

Security policies are applied:

🔒 Block specific sites
🧼 Remove suspicious attachments
📛 Filter based on keywords

Real Example — Using Squid Proxy:


acl block_sites dstdomain .facebook.com .tiktok.com  
http_access deny block_sites

🧰 You can also:

Block .exe downloads

Enforce safe search

Limit bandwidth for video streaming

⚠️ Limitations:

Protocol-specific (needs separate config for HTTP, FTP, etc.)

Performance hit due to deep inspection (CPU/memory intensive)

🧩 TL;DR
Application proxies are firewalls with brains 🧠
They don’t just ask “who’s talking” — they ask “what are they saying?” and “should we allow it?”

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🕵️‍♂️ Keyloggers + Rootkits = Stealth Mode Activated 💀⌨️

Ever wonder how some malware stays hidden for months while stealing your passwords, messages, and everything you type?
That’s the deadly combo of Keyloggers + Rootkits — a match made in hacker heaven. 💣

🧠 How They Work Together:
🔑 Keylogger Role:

Hooks into keyboard input APIs like ReadFile, GetAsyncKeyState, or even low-level syscalls like NtReadVirtualMemory

Records every keystroke you type (passwords, messages, bank logins)

👻 Rootkit Role:


Uses Direct Kernel Object Manipulation (DKOM) to hide the keylogger process from Task Manager and antivirus tools

Intercepts system APIs to fake "clean" results — no keylogger in sight

Ensures data exfiltration via covert channels (e.g., DNS tunneling, fake web traffic)

🛠 What Makes This Duo So Dangerous?
Completely invisible to users
Bypasses traditional AV/EDR
Operates quietly in the kernel space or userland
Exfiltrates your data without setting off alarms

🚨 Real-World Impact:
Credential theft

Corporate espionage

Targeted surveillance

Financial fraud

🛡 Defense Tips:
🔒 Use behavioral-based detection (not just signatures)
🧠 Monitor for unusual network activity or system hooks
📦 Employ endpoint protection with rootkit detection
🧰 Use tools like GMER or chkrootkit on Linux for deep scans

👁 They’re watching, even if you can’t see them. Don’t just trust your Task Manager.

#CyberSecurity #Keylogger #Rootkit #MalwareAnalysis #StealthMalware #InfoSec #RedTeam #WindowsInternals #APT #ThreatHunting #DarkSideOfHacking

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
1👍1
🧠 4. Optimistic Crash Consistency
🔍 What is it?

This is a modern approach where the system assumes most operations succeed and optimizes for speed, but adds lightweight checks/recovery logic in case of crashes.

Key Idea:

Avoid expensive journaling or COW for every change

If a crash happens, use quick heuristics or metadata checks to recover


📌 Used in:
Modern apps with internal logic (e.g., LevelDB, RocksDB)

Some non-journaled but "safe enough" file systems


❗️Tradeoff:

Faster, less write overhead

Slightly higher risk of inconsistency, but rare


🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
👍1
🔐 Chain of Trust: Why You Trust That Little Lock Icon
Ever wondered why your browser trusts https://yourbank.com?
It’s not magic — it’s the Chain of Trust at work. 🧩🔗

🧠 What Is the Chain of Trust?
It’s a security model where trust flows from a known, trusted authority down through verified layers — like a digital passport system.

If you trust the root, and it signs others, you trust them too.

📘 “In public key infrastructure (PKI), a chain of trust ensures that a certificate is only trusted if it links back to a known, trusted root authority.”

🏛 How It Works — Real-World Analogy:

👑 Root CA — The ultimate authority (like a government)

🧾 Intermediate CA — Delegated entities (like passport offices)

🪪 Leaf Certificate — Issued to a specific site (like yourbank.com)

Each level signs the one below it:
Root signs Intermediate → Intermediate signs your website

Your device comes preloaded with trusted root certificates (e.g., from Mozilla, Apple, Microsoft), so when it sees a valid chain, it says: Trusted!

🔍 Why It Matters:

Prevents random sites from claiming to be secure

Ensures certificates can be revoked or validated

Critical for TLS, email encryption, code signing, and more

What Can Go Wrong?


A compromised CA can fake trust for malicious domains

Man-in-the-middle attacks if the chain is broken or misconfigured

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us

Self-signed or expired certs = 🚨 browser warnings

🧩 TL;DR
The Chain of Trust is why your device can securely say:
“Yes, this website is who it claims to be.”
Trust flows from the root, down to the site — step by signed step.
🎭 DNS Spoofing: The Internet’s Fake Tour Guide
You typed facebook.com — but you ended up on a fake site.
What just happened? You’ve been DNS spoofed. 🎣🌐

🧠 What Is DNS Spoofing?
DNS spoofing (aka DNS cache poisoning) is an attack where fake DNS responses are sent to a victim to redirect them to a malicious site, even though they typed the correct domain.

It’s like asking a guide for directions to a bank — and they send you to a trap house instead. 🏦➡️🏚

🧪 How It Works (Simplified):

Victim asks DNS server: "Where’s facebook.com?"

Attacker races to respond first with a fake IP (e.g., their phishing server)

The fake result gets cached, poisoning others too

Now everyone gets sent to the wrong destination — silently 😱

🎯 Why Attackers Use It:

Phishing pages that look real (steal logins or credit cards)

Malware distribution

Intercept traffic for surveillance (e.g., in public Wi-Fi)

🛡 Defenses Against DNS Spoofing:

🔐 Use DNSSEC (adds digital signatures to DNS records)

🧠 Avoid using untrusted DNS resolvers

🔒 Prefer HTTPS — fake DNS can’t forge valid certificates

🚫 Regularly flush DNS cache and monitor DNS traffic


🧩 TL;DR
DNS spoofing is like hijacking your GPS and sending you to the wrong destination — but online.

#DNSSpoofing #CachePoisoning #CyberAttack #DNSSEC #InfoSecTube

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us
🌐 Circuit-Level Proxy: The Middleman of Your TCP Traffic
Imagine a trusted messenger who just forwards your letters without reading them — that’s what a circuit-level proxy does with your network sessions. 📬🤫

📘 Example:

SOCKS5 proxy (used in Tor, SSH tunnels)

🧠 How It Works:


Mediates TCP sessions between client and server

Doesn’t peek into the payload — doesn’t care if it’s HTTP, FTP, or anything else

Simply forwards packets at the session layer

✔️ Why Use It?

Bypass NAT restrictions 🔄

Anonymize your traffic 🕵️‍♀️

Hide your internal network structure behind a proxy wall 🧱

🧩 TL;DR
Circuit-level proxies are the silent couriers of the internet — forwarding your connection without snooping on your messages.

#SOCKS5 #CircuitProxy #Tor #NetworkPrivacy #InfoSecTube

🎯@InfoSecTube
📌YouTube channel
🎁Boost Us