$npx skillfedfor your agent

Linux Cron Service Abuse

This skill teaches penetration testers to identify and exploit scheduled tasks, system services, and inter-process communication mechanisms for privilege escalation. It covers writable cron scripts, PATH manipulation, wildcard injection attacks, systemd unit modification, and D-Bus service exploitation—all under explicit authorization.

Linux Cron Service Abuse helps you escalate privileges through cron jobs, systemd services, and D-Bus exploitation on authorized Linux systems.

AI-generated summary based on this skill's SKILL.md

241 34 GPL-3.0updated by blacklanternsecurity

Decision gist · record as of 2026-04-01

Linux Cron Service Abuse helps you escalate privileges through cron jobs, systemd services, and D-Bus exploitation on authorized Linux systems. This skill teaches penetration testers to identify and exploit scheduled tasks, system services, and inter-process communication mechanisms for privilege escalation. It covers writable cron scripts, PATH manipulation, wildcard injection attacks, systemd unit modification, and D-Bus service exploitation—all under explicit authorization.

manual: git clone https://github.com/blacklanternsecurity/red-run → cp -r red-run ~/.claude/skills/linux-cron-service-abuse

Use it when

  • Linux Cron Service Abuse covers persistence techniques where attackers create or modify cron entries to execute malicious payloads.
  • Linux Cron Service Abuse teaches multiple attack vectors: modifying writable cron scripts directly.
Same gist for agents: .md · .json

Install

blacklanternsecurity/red-run/linux-cron-service-abuse · repository language: Python

generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is Linux cron service abuse and how does it enable privilege escalation?

Linux Cron Service Abuse teaches how attackers exploit scheduled tasks to gain elevated privileges. Cron jobs running as root or other privileged users can be hijacked through writable scripts, PATH manipulation, or wildcard injection. When a lower-privileged user modifies a cron script or injects malicious commands into its execution path, the job runs those commands with the owner's privileges—enabling privilege escalation from a regular user to root or other system accounts.

How can cron job exploitation be used for persistence on a Linux system?

Linux Cron Service Abuse covers persistence techniques where attackers create or modify cron entries to execute malicious payloads at regular intervals. By adding backdoor commands to root-owned crontabs or writable cron scripts, an attacker ensures their code runs automatically even after reboot. This persistence survives system restarts and allows long-term access without requiring manual re-exploitation, making cron a favored mechanism for maintaining compromised systems.

What are the main exploitation techniques for cron-based attacks?

Linux Cron Service Abuse teaches multiple attack vectors: modifying writable cron scripts directly, manipulating the PATH variable to execute attacker-controlled binaries instead of legitimate ones, exploiting wildcard characters in cron commands (e.g., `tar *`), and hijacking cron job dependencies. These techniques work because cron runs jobs in predictable environments with inherited permissions, allowing attackers to intercept execution or inject malicious logic into the job's runtime context.

How can unauthorized cron modifications and cron-based attacks be detected?

Linux Cron Service Abuse includes detection methods: audit crontab files and `/etc/cron.d/` directories for unexpected entries or timestamps, monitor file integrity of cron scripts using tools like AIDE or Tripwire, check process execution logs for suspicious cron-spawned commands, and review system logs for failed cron runs or permission errors. Regular baseline comparisons and alerting on new cron job creation help identify unauthorized modifications before they cause damage.

What defensive measures secure cron jobs against abuse and malicious configuration?

Linux Cron Service Abuse recommends securing cron by restricting write permissions on cron scripts and directories (use `chmod 755` for scripts, `chmod 700` for cron directories), avoiding wildcards in cron commands, hardening PATH variables in cron environments, and using absolute paths for all executables. Additionally, limit crontab access via `/etc/cron.allow` and `/etc/cron.deny`, audit cron logs regularly, and apply principle of least privilege—run cron jobs with the minimum required permissions rather than as root.

What is cron job hijacking and how does PATH manipulation enable it?

Linux Cron Service Abuse explains cron job hijacking as intercepting a scheduled task's execution to run attacker-controlled code instead. PATH manipulation is a primary technique: if a cron job calls a binary by name (e.g., `backup.sh` instead of `/usr/local/bin/backup.sh`), an attacker can place a malicious script with the same name in a directory earlier in the PATH. When cron executes the job, it finds and runs the attacker's version first, gaining the cron job's privileges—often root or system-level access.

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Understand how cron can be abused for privilege escalation and persistence”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Linux Pentester Practical Commands
by Aradotso · Aradotso/security-skills

Linux Pentester Practical Commands is a reference collection of command-line operations organized by penetration testing phase. It covers reconnaissance, enumeration, exploitation, privilege escalation, and post-exploitation workflows with real-world examples used in security assessments and CTF exercises.

no license declared → metadata onlyupdated Jul 2026
★ 8repo stars
linux-lateral-movement
by yaklang · yaklang/hack-skills

This skill teaches advanced techniques for moving between Linux hosts after initial compromise. Master SSH agent hijacking, private key discovery, credential extraction from system files and process memory, D-Bus service abuse, and internal network tunneling to expand your foothold across infrastructure.

MITupdated Jun 2026
★ 1,480repo stars
Linux File Path Abuse
by blacklanternsecurity · blacklanternsecurity/red-run

This skill guides penetration testers through Linux privilege escalation via writable critical files, NFS exports, shared library hijacking, and group-based access. It covers assessment of available vectors, exploitation techniques for each path, and integration with engagement logging and state management.

GPL-3.0updated Apr 2026
★ 241repo stars
linux-privilege-escalation
by yaklang · yaklang/hack-skills

This skill covers systematic Linux privilege escalation from low-privilege shell access to root. It walks through enumeration, SUID/SGID binary exploitation, capability abuse, cron job manipulation, NFS misconfigurations, writable system files, LD_PRELOAD tricks, Docker group abuse, and library hijacking—with specific commands and exploitation tables for each vector.

MITupdated Jun 2026
★ 1,480repo stars
Infrastructure Monitoring Setup
by dawiddutoit · dawiddutoit/custom-claude

Configure push notifications to your phone for infrastructure events using ntfy.sh, install a systemd timer for continuous 5-minute monitoring cycles, and optionally enable automatic recovery of failed services. Includes Home Assistant integration for centralized alerting.

no license declared → metadata onlyupdated Jan 2026
★ 1repo stars
Linux Discovery
by blacklanternsecurity · blacklanternsecurity/red-run

Linux Discovery helps penetration testers systematically identify privilege escalation opportunities on Linux hosts through enumeration of system configuration, sudo settings, group memberships, and kernel vulnerabilities. The skill gathers baseline system information, analyzes user context and permissions, and maps exploitable vectors while respecting scope boundaries and engagement logging.

GPL-3.0updated Apr 2026
★ 241repo stars

More skills linux-privilege-escalation (MIT) · Linux Pentesting Commands (NOASSERTION) · file-operations (Apache-2.0) · Linux Sudo Suid Capabilities (GPL-3.0)

Tags
privilege-escalationpersistence-mechanismlateral-movementscheduled-executionpost-exploitationsystem-hardeningthreat-detectionattack-surface