security risks

All posts tagged security risks by Linux Bash
  • Posted on
    Featured Image
    In this blog post, we delve into auditing Linux Bash scripts for potentially unsafe usage of the eval and exec commands. We'll unravel the complexities of these commands, their risks, and how to inspect scripts to ensure safe practices. Q1: What are eval and exec used for in Linux Bash scripts? A1: The eval command in Bash is used to execute arguments as a Bash command, dynamically generating code that will be executed by the shell. The exec command replaces the shell with a specified program (without creating a new process), or can be used to redirect file descriptors. Q2: Why is auditing scripts for eval and exec important? A2: Both commands are powerful but can pose significant security risks if used improperly.
  • Posted on
    Featured Image
    Introduction: Keeping your Linux system’s packages up to date is generally a recommended practice for security and stability. However, in certain scenarios such as environments that require extensive testing or precise control over when upgrades occur, you might find it necessary to disable automatic updates. This ensures that updates do not interfere with ongoing work, introduce unexpected behaviors, or affect software dependencies unpredictably. Today, we will guide you on how to disable automatic package upgrades for some of the most common package managers in Linux: APT (used by Debian-based distributions), DNF (used by Fedora and its derivatives), and Zypper (used by openSUSE). 1.