Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
actions-security-analyzer
Advanced tools
asa (actions-security-analzyer) is a tool to analyze the security posture of your GitHub Actions.
Make sure you have
$HOME/.local/bin
in your PATH
pip install actions-security-analzyer
asa --file action.yml
asa -d directory-with-actions/ --verbose
asa --file action.yml --ignore-warnings
asa --list-checks
asa
in Your GitHub Workflowsname: 'RunActionsSecurityAnalzyer'
on:
push:
branches:
- main
- dev
paths:
- '.github/workflows/**'
jobs:
RunAsa:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 # v3.5.3
- name: "Run asa scanner"
uses: "bin3xish477/asa@ee733379e314d44f1a960a70339ee5e5d19e404d"
with:
dir: "./actions/"
verbose: true
no-summary: true
ignore-checks: 'check_for_inline_script check_for_cache_action_usage'
asa
Name: check_for_3p_actions_without_hash
, Level: FAIL
v1.1
instead of commit SHA haah. Using a hash can help mitigate supply chain threats in a scenario where a threat actor has compromised the source repository where the 3P action lives.Name: check_for_allow_unsecure_commands
, Level: FAIL
ACTIONS_ALLOW_UNSECURE_COMMANDS
which allows for an Action to get access to dangerous commands (get-env
, add-path
) which can lead to code injection and credential thefts opportunities.Name: check_for_cache_action_usage
, Level: WARN
actions/cache
) which may result in sensitive information disclosure or cache poisoning.Name: check_for_dangerous_write_permissions
, Level: FAIL
contents
scope which may allow an adversary write code into the target repository if they're able to compromise the workflow. It's also looks for usage of the write-all
which gives the action complete write access to all scopes.Name: check_for_inline_script
, Level: WARN
asa
). It is recommended to write an action and pass any required context values as inputs to that action which removes script injection vector because action input are properly treated as arguments and are not evaluated as part of a script.Name: check_for_pull_request_target
, Level: FAIL
pull_request_target
which allows workflow executions to run in the context of the repository that defines the workflow, not the repository that the pull request originated from, potentially allowing a threat actor to gain access to a repositories sensitive secrets!Name: check_for_script_injection
, Level: FAIL
${{ ... }}
syntax) a GitHub Context variable(s) in an inline script that can be controlled by an untrusted actor, resulting in command execution in the interpreted shell. These user-controllable parameters should be passed into an inline script as environment variables.Name: check_for_self_hosted_runners
, Level: WARN
Name: check_for_aws_configure_credentials_non_oidc
, Level: WARN
aws-actions/configure-aws-credentials
action and attempts to identify non-OIDC authentication parameters. Non-OIDC authentication types are less secure than OIDC because they require the creation of long-term credentials which can be compromised, however, OIDC tokens are short-lived and are usually scoped to only the permissions that are essential to a workflow and thus help reduce the attack surface.Name: check_for_pull_request_create_or_approve
, Level: WARN
Name: check_for_remote_script
, Level: WARN
FAQs
Analyze the security posture of one or more GitHub Actions
We found that actions-security-analyzer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.