Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new custom configuration for routes #25

Merged
merged 14 commits into from
Feb 20, 2025

Conversation

matteovivona
Copy link
Collaborator

No description provided.

Copy link

socket-security bot commented Jul 31, 2024

Copy link

socket-security bot commented Jul 31, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Shell access npm/@biomejs/[email protected] 🚫
Dynamic require npm/@biomejs/[email protected] 🚫
Uses eval npm/[email protected] 🚫
New author npm/[email protected] 🚫
Unstable ownership npm/[email protected] 🚫
Environment variable access npm/@babel/[email protected] 🚫
AI-detected potential code anomaly npm/[email protected]
  • Notes: The code sets up signal listeners to handle termination signals in a Node.js process and execute a provided callback. While it does not contain overtly malicious behavior, there are some suspicious elements and potential risks. The use of empty try/catch blocks to ignore errors could hide issues. Killing the process with the received signal and setting an empty timeout afterwards is unusual and raises questions about the code's intent. Increasing the max listeners count could also be used to circumvent listener limits. However, without more context about the intended use case, it's difficult to conclude definitively that this code is malicious. The suspicious behaviors warrant caution and further review to determine if they could be exploited for malicious purposes.
  • Confidence: 1.00
  • Severity: 0.60
🚫
Environment variable access npm/[email protected] 🚫
Environment variable access npm/[email protected] 🚫
Environment variable access npm/[email protected] 🚫
Environment variable access npm/[email protected] 🚫
Environment variable access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Unstable ownership npm/@fastify/[email protected] 🚫
New author npm/@fastify/[email protected] 🚫
New author npm/[email protected] 🚫
Unstable ownership npm/[email protected] 🚫
Unstable ownership npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
Unstable ownership npm/[email protected] 🚫
Unstable ownership npm/[email protected] 🚫
New author npm/[email protected] 🚫

View full report↗︎

Next steps

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is dynamic require?

Dynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.

Packages should avoid dynamic imports when possible. Audit the use of dynamic require to ensure it is not executing malicious or vulnerable code.

What is dynamic code execution?

Package uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Avoid packages that use dynamic code execution like eval(), since this could potentially execute any code.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is unstable ownership?

A new collaborator has begun publishing package versions. Package stability and security risk may be elevated.

Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

What is environment variable access?

Package accesses environment variables, which may be a sign of credential stuffing or data theft.

Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

What is an AI-detected potential code anomaly?

AI has identified unusual behaviors that may pose a security risk.

An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@matteovivona matteovivona marked this pull request as ready for review July 31, 2024 12:24
@matteovivona matteovivona requested a review from fox1t July 31, 2024 12:24
@matteovivona matteovivona added the enhancement New feature or request label Jul 31, 2024
# Conflicts:
#	.github/workflows/ci.yaml
#	.prettierrc
#	README.md
#	package-lock.json
#	package.json
#	src/index.ts
@matteovivona matteovivona requested a review from lucalas February 20, 2025 08:26
BREAKING CHANGE: re-organize probe endpoint
@matteovivona matteovivona merged commit 1af6e6a into master Feb 20, 2025
9 of 10 checks passed
@matteovivona matteovivona deleted the add-new-custom-routes branch February 20, 2025 09:11
@matteovivona matteovivona restored the add-new-custom-routes branch February 20, 2025 09:43
@matteovivona matteovivona deleted the add-new-custom-routes branch February 20, 2025 09:44
@matteovivona
Copy link
Collaborator Author

PR unpublished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants