Author: Mark

  • How to Set Up Your Own Pi-hole: A Comprehensive Guide

    How to Set Up Your Own Pi-hole: A Comprehensive Guide

    Introduction to Pi-hole

    Pi-hole is a powerful, open-source network-wide ad blocker that acts as a DNS (Domain Name System) sinkhole, blocking advertisements, trackers, and malicious domains across your entire network. It’s lightweight, efficient, and incredibly useful for anyone who wants to improve internet speed and security while reducing the annoyance of intrusive ads.

    In this blog post, we’ll walk you through the entire process of setting up Pi-hole, the pros and cons of using it, and how to configure your devices to use it for a cleaner, faster internet experience.


    Why You Should Use Pi-hole

    Pros of Pi-hole:

    1. Ad Blocking Across Your Network: Pi-hole blocks all ads, trackers, and other unwanted content on every device connected to your network. Whether it’s your smartphone, tablet, smart TV, or laptop, Pi-hole works across all devices without requiring additional software.
    2. Improved Internet Speed: By blocking ads at the DNS level, Pi-hole reduces the amount of unnecessary data your devices have to download. This results in faster loading times for websites and apps, especially on mobile devices.
    3. Enhanced Privacy: Pi-hole helps protect your privacy by blocking tracking scripts and other malicious content that advertisers often use to track your online behavior.
    4. Easy to Set Up: Pi-hole is relatively easy to install and configure, especially on a Raspberry Pi, but it can also be run on Linux or even Docker on other hardware.
    5. Free and Open Source: Pi-hole is completely free, and its open-source nature means that it’s constantly updated and improved by the community.

    Cons of Pi-hole:

    1. Doesn’t Block All Ads: While Pi-hole blocks a large number of ads, it’s not perfect. Some ads may still slip through, especially if they use non-standard methods for serving content. However, Pi-hole has community-driven lists to constantly improve blocking.
    2. Requires Maintenance: You may need to occasionally update Pi-hole’s blocklists or troubleshoot certain configurations, especially if a new device or service bypasses the blocker.
    3. Compatibility Issues with Some Services: Some websites or apps may not work properly when Pi-hole blocks certain resources, such as login screens or video streaming services. You may have to whitelist specific domains to get them working.
    4. Requires a Dedicated Device: Although Pi-hole can run on low-powered devices like a Raspberry Pi, it still requires a device that’s always on in your network. If the device goes offline, your ad blocking will cease functioning.

    How to Set Up Pi-hole

    Prerequisites:

    • A Raspberry Pi (Pi 3/4 is recommended for best performance, but even a Pi Zero W can suffice)
    • A microSD card (at least 8 GB)
    • An internet connection
    • A computer to perform the setup (with SSH access to the Pi)
    • Basic knowledge of using terminal commands

    Step-by-Step Pi-hole Installation

    1. Prepare Your Raspberry Pi:
      • Flash your Raspberry Pi’s SD card with Raspberry Pi OS using the Raspberry Pi Imager.
      • Once flashed, boot up your Raspberry Pi and connect it to the internet either via Wi-Fi or Ethernet.
    2. Update Your Raspberry Pi:
      • Open a terminal window and update the system: sudo apt update && sudo apt upgrade -y
    3. Install Pi-hole:
      • Pi-hole’s installation script simplifies the setup process. Run the following command to start the installation: curl -sSL https://install.pi-hole.net | bash
    4. Follow the Installation Wizard:
      • The Pi-hole installer will guide you through the process. You’ll be asked to:
        • Choose your network interface (Ethernet or Wi-Fi).
        • Select a DNS provider (Google, OpenDNS, or others).
        • Choose an upstream DNS server (for resolving requests Pi-hole cannot block).
        • Set an admin password (for Pi-hole’s web interface).
        • Enable or disable blocking of ads over IPv6 (recommended to enable for full protection).
    5. Access the Pi-hole Web Interface:
      • After installation, you can access Pi-hole’s web interface by navigating to your Raspberry Pi’s IP address in your browser, followed by /admin (e.g., http://192.168.1.100/admin).
      • Log in with the admin password you set up during installation.

    How to Configure Devices to Use Pi-hole

    After Pi-hole is installed and running, it’s time to configure your network devices to route their DNS requests through Pi-hole.

    Option 1: Set Pi-hole as Your Router’s DNS Server

    The easiest way to ensure all devices on your network use Pi-hole is by changing your router’s DNS settings. This way, Pi-hole will act as the default DNS server for all connected devices.

    1. Log in to Your Router:
      • Open a web browser and navigate to your router’s IP address (usually something like 192.168.1.1 or 192.168.0.1).
      • Enter your username and password to log in to the router’s admin interface.
    2. Find DNS Settings:
      • Look for the DNS configuration section. This is typically found under the Network, LAN, or Advanced settings.
    3. Set Pi-hole as the DNS Server:
      • Enter your Raspberry Pi’s IP address as the primary DNS server.
      • You can leave the secondary DNS server blank, or enter a fallback DNS provider (e.g., Google DNS 8.8.8.8).
    4. Save and Reboot:
      • Save the settings and reboot your router. All devices connected to your network should now use Pi-hole for DNS.

    Option 2: Manually Set DNS on Individual Devices

    If you don’t want to modify your router settings or prefer to configure devices individually, you can manually set Pi-hole’s IP address as the DNS server on each device.

    1. For Windows:
      • Open Control Panel and go to Network and Sharing Center.
      • Click on your active connection, then go to Properties.
      • Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
      • Set the Preferred DNS server to your Raspberry Pi’s IP address and click OK.
    2. For macOS:
      • Open System Preferences > Network.
      • Select your network connection and click Advanced.
      • Go to the DNS tab, then add your Raspberry Pi’s IP address under the DNS Servers list.
    3. For Android and iOS:
      • Go to your device’s Wi-Fi settings and select your network.
      • For Android, tap Advanced and then set the DNS server to your Pi’s IP address.
      • On iOS, tap Configure DNS and select Manual, then add your Pi-hole IP.

    Managing and Monitoring Pi-hole

    Once Pi-hole is set up, you can manage and monitor it from the web interface:

    • Blocklists: Pi-hole uses a set of predefined blocklists, but you can add more to improve blocking capabilities.
    • Logs: Pi-hole tracks all DNS requests, and you can monitor which domains are being queried in real-time.
    • Whitelist/Blacklist: You can manually add domains to a whitelist or blacklist, depending on whether you want to block or allow specific domains.

    Setting up Pi-hole is a great way to improve your network’s privacy and performance while reducing the annoyance of ads. By following this guide, you should be able to install and configure Pi-hole on your Raspberry Pi and set up your devices to use it as the DNS server. With its easy setup and minimal maintenance, Pi-hole is an excellent tool for anyone looking to have more control over their online experience.

    If you encounter any issues or need more advanced configurations, feel free to explore Pi-hole’s extensive documentation or ask for help in their community forums.

    Happy almost ad-free browsing!

  • Malicious Tampering of 3D Medical Imagery Using Deep Learning

    Malicious Tampering of 3D Medical Imagery Using Deep Learning

    Source: Mirsky, Y., Mahler, T., Shelef, I., & Elovici, Y. (2019). CT-GAN: Malicious Tampering of 3D Medical Imagery using Deep Learning. In 28th USENIX Security Symposium (USENIX Security 2019).

    Main Themes:

    • Vulnerability of Medical Imaging Systems: The research highlights the concerning vulnerability of Picture Archiving and Communication Systems (PACS) and medical imaging devices to cyber attacks. These vulnerabilities, coupled with the reliance on 3D medical scans for diagnosis and treatment, create a serious threat to patient safety and healthcare integrity.
    • Deep Learning Enabled Attack: The authors present CT-GAN, a framework utilizing Conditional Generative Adversarial Networks (cGANs) to manipulate 3D medical imagery, specifically by adding or removing evidence of medical conditions like lung cancer in CT scans. This represents a novel and potent attack vector exploiting the advancements in deep learning.
    • Effectiveness and Implications: CT-GAN demonstrates remarkable effectiveness in deceiving expert radiologists and state-of-the-art AI cancer screening tools, highlighting the significant potential for misdiagnosis and manipulation. This raises profound ethical and security concerns within the healthcare domain.

    Most Important Ideas/Facts:

    1. PACS Security Gaps:
    • Healthcare systems lag behind in security standards, focusing primarily on data privacy over data integrity and availability.
    • Exposed PACS: “A quick search on Shodan.io reveals 1,849 medical image (DICOM) servers and 842 PACS servers exposed to the Internet.”
    • Vulnerable to various attacks: Social engineering, physical access, insider threats, and exploitation of software vulnerabilities.
    1. CT-GAN Attack Framework:
    • Leverages two cGANs: One for injecting and one for removing medical conditions (e.g., lung cancer) from 3D CT scans.
    • Employs in-painting techniques for realistic modification: “To make the process efficient and the output anatomically realistic, we perform the following steps: (1) locate where the evidence should be inject/removed, (2) cut out a rectangular cuboid from the location, (3) interpolate (scale) the cuboid, (4) modify the cuboid with the cGAN, (5) rescale, and (6) paste it back into the original scan.”
    • Automated process: Facilitates deployment within air-gapped systems and real-time manipulation via infected DICOM viewers.
    1. Attack Effectiveness:
    • Deceives radiologists: “The radiologists diagnosed 99% of the injected patients with malign cancer, and 94% of cancer removed patients as being healthy.” Even with awareness of the attack, misdiagnosis rates remained high.
    • Fools AI: State-of-the-art lung cancer screening model misdiagnosed 100% of tampered scans.
    • Implications beyond immediate treatment: Psychological impact on patients, disruption of research, insurance fraud, and potential for political manipulation.
    1. Attack Vectors:
    • Remote Infiltration: Exploiting vulnerabilities in internet-facing elements, social engineering attacks (phishing, spear phishing).
    • Local Infiltration: Physical access with false pretexts, insider threats, hacking Wi-Fi access points.
    • Pen-test demonstration: Successful man-in-the-middle attack on a hospital’s CT scanner highlights real-world feasibility.
    1. Countermeasures:
    • Data Security: Enabling encryption for data-in-motion, robust access control, and up-to-date security measures for PACS and connected devices.
    • Digital Signatures: Utilizing DICOM’s digital signature feature for verifying scan integrity.
    • Digital Watermarking: Embedding hidden signals to detect tampering.
    • Machine Learning Detection: Employing supervised and unsupervised methods to identify anomalies or inconsistencies within scans.

    Key Takeaways:

    • The research exposes a critical cybersecurity threat within the healthcare domain, demonstrating the potential for deep learning to be weaponized against medical imaging systems.
    • CT-GAN highlights the need for enhanced security measures and awareness within healthcare organizations to protect the integrity of medical diagnoses and patient safety.
    • Further research is required to develop robust countermeasures against AI-powered attacks targeting medical imagery.

    Quotes:

    • On PACS vulnerability: “The security of health-care systems has been lagging behind modern standards… This is partially because health-care security policies mostly address data privacy (access-control) but not data security (availability/integrity).”
    • On CT-GAN capabilities: “By dealing with a small portion of the scan, the problem complexity is reduced by focusing the GAN on the relevant area of the body… This results in fast execution and high anatomical realism.”
    • On attack effectiveness: “This attack is a concern because infiltration of healthcare networks has become common, and internal network security is often poor. Moreover, for injection, the attacker is still likely to succeed even if medical treatment is not performed.”
  • Analyzing the Current Landscape of NAS for Home Use: A Cybersecurity Perspective

    Analyzing the Current Landscape of NAS for Home Use: A Cybersecurity Perspective

    Network-Attached Storage (NAS) devices have become an integral part of modern households. They offer centralized storage, media streaming, and even remote access, making them a favorite for tech enthusiasts and families alike. However, as with any internet-connected device, NAS devices are not immune to cybersecurity threats. This post analyzes the current NAS options for home use from a cybersecurity standpoint, helping you make an informed choice.

    Key Cybersecurity Criteria for Evaluating NAS Devices

    1. Operating System Security: A secure operating system is fundamental to a NAS device. Regular updates, patch management, and a hardened kernel are critical.
    2. Access Controls: Robust user authentication and permission systems help restrict unauthorized access.
    3. Remote Access Security: Features like end-to-end encryption, VPN support, and two-factor authentication (2FA) are vital for safe remote access.
    4. Data Encryption: Encryption, both at rest and in transit, ensures data confidentiality even if the device is compromised.
    5. Network Security: Integration with firewall rules, support for intrusion detection/prevention systems (IDS/IPS), and strong default settings.
    6. Incident Response: The ability to detect, log, and alert users of suspicious activities.

    Top NAS Brands and Their Cybersecurity Features

    1. Synology
      • Strengths: Synology DSM (DiskStation Manager) is frequently updated with security patches. Built-in 2FA, comprehensive user permission controls, and integrated VPN server support make it a strong contender.
      • Weaknesses: While the interface is user-friendly, advanced configurations might require expertise to fully harden against threats.
    2. QNAP
      • Strengths: QNAP’s QTS system offers AES-256 encryption, SSL certificate management, and IP whitelisting/blacklisting. Frequent firmware updates address vulnerabilities promptly.
      • Weaknesses: QNAP devices have been targets for ransomware attacks, highlighting the importance of diligent patching and proper configuration.
    3. Western Digital (WD)
      • Strengths: My Cloud devices include basic security features like HTTPS support and password-protected access.
      • Weaknesses: Compared to Synology and QNAP, WD often lags in proactive updates and advanced security features, leaving them more vulnerable to attacks.
    4. Asustor
      • Strengths: Asustor ADM includes snapshot backup technology, strong encryption options, and frequent updates.
      • Weaknesses: While security features are robust, the interface can be less intuitive, potentially leading to misconfigurations.

    Best Practices for Securing Your NAS

    1. Update Regularly: Ensure your NAS firmware and apps are always up-to-date.
    2. Harden Remote Access: Disable remote access features if not needed. If used, rely on VPNs and enable 2FA.
    3. Strong Passwords: Use complex passwords and avoid default credentials.
    4. Backup Strategically: Use 3-2-1 backup principles (3 copies of data, 2 different media, 1 offsite copy).
    5. Monitor and Log Activities: Enable logging and set up alerts for suspicious activity.
    6. Isolate on the Network: Place your NAS on a dedicated VLAN or subnet to reduce exposure.

    The cybersecurity of NAS devices largely depends on the manufacturer’s diligence and the user’s awareness. Synology and QNAP stand out for their comprehensive feature sets and commitment to updates, but no device is entirely foolproof. By selecting a NAS with strong cybersecurity features and following best practices, you can ensure that your data remains safe and accessible.

  • Tracking and Privacy in Over-the-Top (OTT) Streaming Devices

    Tracking and Privacy in Over-the-Top (OTT) Streaming Devices

    Source: Watching You Watch: The Tracking Ecosystem of Over-the-Top TV Streaming Devices by Mohajeri Moghaddam et al. (CCS ‘19)

    Main Themes:

    • Pervasive Tracking in OTT Streaming Devices: The study reveals widespread tracking practices within Over-the-Top (OTT) streaming devices like Roku and Amazon Fire TV. Trackers collect and transmit user data, often without explicit consent or effective countermeasures.
    • Identifier and Information Leakage: OTT channels leak sensitive user information, including persistent identifiers like MAC addresses, serial numbers, and WiFi SSIDs, as well as video viewing preferences, to numerous tracking domains.
    • Ineffectiveness of Privacy Controls: Built-in privacy controls like “Limit Ad Tracking” (Roku) and “Disable Interest-based Ads” (Amazon) are largely ineffective in preventing data collection and transmission to tracking domains.
    • Security Vulnerabilities in Remote Control APIs: Vulnerabilities in local remote control APIs expose OTT devices to attacks by malicious web scripts, potentially allowing unauthorized access to device information and control over functionalities.

    Key Findings:

    • Prevalence of Trackers: Tracking domains were found in 69% of Roku channels and 89% of Amazon Fire TV channels studied. Google and Facebook tracking services are highly prevalent, mirroring similar findings on web and mobile platforms.
    • Top Trackers: The most prevalent trackers included doubleclick.net (Google) and google-analytics.com on Roku, and amazon-adsystem.com and crashlytics.com on Amazon Fire TV.
    • Leakage of Persistent Identifiers: A significant number of channels were found to leak persistent identifiers like AD IDs, MAC addresses, and serial numbers, undermining the effectiveness of resetting advertising IDs as a privacy measure. Quote: “Moreover, widespread collection of persistent device identifiers like MAC addresses and serial numbers disables one of the few defenses available to users: resetting their advertising IDs.”
    • Video Title Leakage: Tracking domains were observed receiving information about the titles of videos being watched, revealing user viewing habits. Quote: “We found 9 channels on Roku and 14 channels on the Fire TV … that leaked the title of the video to a tracking domain.”
    • Ineffective Privacy Settings: While “Limit Ad Tracking” on Roku eliminated AD ID leaks, it did not reduce the number of trackers contacted. Similarly, “Disable Interest-based Ads” on Amazon only reduced data collection by Amazon’s own advertising system. Quote: “Our data, however, reveals that even when the privacy option is enabled, there are a number of other identifiers that can be used to track users, bypassing the privacy protections built into these platforms”
    • DNS Rebinding Vulnerability (Roku): Roku’s External Control API was found to be vulnerable to DNS rebinding attacks, allowing malicious web scripts to collect sensitive data, install/uninstall channels, and even geolocate users.

    Recommendations:

    • Implement stronger privacy controls, akin to “Incognito Mode” in web browsers, to limit data collection and prevent cross-profile tracking.
    • Provide mechanisms for users to monitor their network traffic, enabling transparency and analysis of channel behavior.
    • Enhance security of local APIs to mitigate risks of unauthorized access and control.
    • Regulators should use the tools developed in this study to inspect channels and enforce privacy regulations in the OTT ecosystem.

    Conclusion:

    This research underscores the urgent need for improved privacy and security measures within the OTT streaming device ecosystem. Current practices expose users to extensive tracking and data leakage, often without their knowledge or consent. Stronger privacy controls, transparent data collection practices, and robust security measures are crucial to protect user privacy and build trust in these platforms.

  • Securing Your Home Router

    Securing Your Home Router

    In today’s hyper-connected world, your home router is the gateway to the digital realm. It connects all your devices to the internet, making it a critical piece of your home’s cybersecurity puzzle. Unfortunately, it’s often overlooked, leaving a door wide open for cyber threats. Below, I’ll explore some essential steps to secure your router and safeguard your home network.

    1. Use a Strong, Unique Password

    The default admin passwords that come with routers are easy targets for attackers. Changing your router’s admin credentials to a strong, unique password is your first line of defense. Consider using a mix of uppercase and lowercase letters, numbers, and special characters. Password managers can help generate and store secure passwords if needed.

    2. Disable Remote Management

    Remote management allows you to access your router from anywhere, but it also opens the door for attackers. Unless you absolutely need this feature (and most home users don’t), it’s best to disable it. This minimizes the attack surface of your network.

    3. Segregate IoT Devices

    The Internet of Things (IoT) has revolutionized our lives, but many IoT devices lack robust security measures. Segregate these devices by setting up a separate network for them. Many modern routers, like the Synology routers I use, allow you to create multiple SSIDs, ensuring your primary devices are shielded from potential IoT vulnerabilities.

    4. Avoid Universal Plug and Play (uPNP)

    While uPNP is convenient for gaming consoles and other devices to automatically configure port forwarding, it’s also a security risk. uPNP can allow malware to manipulate your router’s settings. Disabling this feature adds another layer of security to your network.

    5. Skip WPS (Wi-Fi Protected Setup)

    WPS was designed to simplify device connections, but it has known vulnerabilities that can be exploited by attackers. Disable WPS and stick to manually connecting devices to your network with a strong password.

    6. Keep Firmware Updated

    Router manufacturers regularly release firmware updates to patch security vulnerabilities and enhance functionality. Check for updates frequently or enable automatic updates if your router supports it. Staying updated ensures you’re protected against the latest threats.

    7. Use a Guest Network

    Instead of sharing your primary network password with visitors, set up a guest network. This keeps their devices isolated from your main devices and prevents accidental access to sensitive resources. Most routers make it easy to create and manage guest networks, adding convenience and security.

    Final Thoughts

    Your router is more than just a device that connects you to the internet—it’s the gatekeeper of your digital life. By taking proactive steps to secure it, you can significantly reduce your risk of cyber threats. Whether it’s changing passwords, disabling risky features, or updating firmware, every action contributes to a safer home network.

    Remember, the strength of your network’s security starts with you. Don’t wait until it’s too late—secure your router today and enjoy peace of mind in the digital age.

  • The Importance of Strong Passwords and How Password Managers Like Bitwarden Keep You Safe

    The Importance of Strong Passwords and How Password Managers Like Bitwarden Keep You Safe

    In today’s digital age, our lives are increasingly intertwined with online services. From banking and shopping to social media and email, every account you create requires a password. While convenient, this interconnectedness exposes us to significant risks if our passwords are weak, reused, or compromised. The importance of using strong, unique passwords cannot be overstated, and tools like Bitwarden can make this easier than ever.

    Top 10 list of the most common passwords

    1123456
    2123456789
    312345
    4qwerty
    5password
    612345678
    7111111
    8123123
    91234567890
    101234567

    Why Complicated Passwords Matter

    A strong password is your first line of defense against unauthorized access. Cybercriminals use sophisticated techniques like brute force attacks, dictionary attacks, and credential stuffing to crack passwords. Here’s why complexity and uniqueness are vital:

    1. Length is Strength: A longer password (12+ characters) is significantly harder to crack than a shorter one.
    2. Unpredictability: Including a mix of uppercase letters, lowercase letters, numbers, and symbols adds complexity, making passwords harder to guess.
    3. Avoiding Reuse: Reusing passwords across accounts is risky because a breach in one service can expose your other accounts.

    Simple passwords like “123456” or “password” remain among the most commonly used and easily cracked. To truly protect yourself, you need passwords that look like random gibberish, such as j&3^Lx!wP0aC.


    The Problem With Remembering Strong Passwords

    The challenge? Memorizing a dozen or more unique, complex passwords is virtually impossible. That’s where a password manager comes in.


    How Password Managers Like Bitwarden Help

    Password managers are secure tools designed to store, generate, and autofill your passwords. Bitwarden, one of the most popular password managers, offers a range of features to simplify and strengthen your digital security:

    1. Strong Password Generation: Bitwarden can create random, complex passwords with customizable settings, ensuring they meet the requirements of any website or service.
    2. Secure Storage: All your passwords are encrypted and stored in a secure vault accessible only with a master password that you create. Bitwarden uses end-to-end encryption, meaning only you can access your data.
    3. Cross-Device Sync: Whether you’re on your laptop, phone, or tablet, Bitwarden syncs your passwords across devices, making them readily available when you need them.
    4. Convenient Autofill: Save time and eliminate errors by letting Bitwarden autofill your login credentials on websites and apps.
    5. Enhanced Security:
      • Two-Factor Authentication (2FA): Add another layer of protection to your Bitwarden account.
      • Breach Monitoring: Receive alerts if any of your stored passwords are exposed in data breaches.

    Taking the First Step

    Switching to a password manager might seem daunting, but the payoff in security and convenience is worth it. Here’s how to get started with Bitwarden:

    1. Download Bitwarden: It’s available on all major platforms (Windows, macOS, Linux, iOS, Android) and as browser extensions.
    2. Create an Account: Sign up and set a strong, memorable master password—the only one you’ll need to remember.
    3. Import Existing Passwords: Bitwarden allows you to import passwords from browsers or other password managers.
    4. Enable Two-Factor Authentication: Strengthen your Bitwarden account for added peace of mind.
    5. Start Generating Unique Passwords: Replace weak or reused passwords with strong ones created by Bitwarden.

    Final Thoughts

    In an era of increasing cyber threats, relying on weak or reused passwords is a gamble you can’t afford to take. Complex passwords are essential for keeping your online accounts secure, and a tool like Bitwarden makes it easy to adopt this critical best practice.

    By investing a small amount of time to set up and use a password manager, you’ll enjoy a more secure online experience—and the peace of mind that comes with knowing your digital life is well-protected. Make the switch today and take control of your cybersecurity!

  • Intro

    Intro

    Welcome to my blog! I’m Mark, a passionate computer and cyber security hobbyist with a deep fascination for technology’s ever-evolving landscape. When I’m not exploring the latest in cybersecurity trends or tinkering with tech, I work as a Network Administrator, managing and securing complex systems to keep everything running smoothly.

    This blog is my space to share insights, tips, and experiences from the world of networking and cybersecurity. Whether you’re a fellow enthusiast, a professional in the field, or just curious about how things work behind the scenes, I hope you’ll find something here to inspire and inform you.

    Thanks for stopping by—let’s dive into the exciting world of tech together!