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

Add performance tests for socket.io #1075

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

christopherferreira9
Copy link
Collaborator

@christopherferreira9 christopherferreira9 commented Oct 14, 2024

Explanation

Adds performance tests for Socket.io.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@christopherferreira9 christopherferreira9 requested a review from a team as a code owner October 14, 2024 15:16
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] environment, filesystem, unsafe +3 3.28 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.22 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 19.5 kB nicolo-ribaudo
npm/@babel/[email protected] environment 0 148 kB nicolo-ribaudo
npm/@sindresorhus/[email protected] None 0 10.5 kB sindresorhus
npm/@types/[email protected] None +1 221 kB types
npm/@types/[email protected] None 0 313 kB types
npm/@types/[email protected] None 0 2.25 MB types
npm/@types/[email protected] None 0 7.3 kB types
npm/@webpack-cli/[email protected] None 0 4.55 kB evilebottnawi
npm/@webpack-cli/[email protected] None 0 3.72 kB evilebottnawi
npm/@webpack-cli/[email protected] environment 0 11.6 kB evilebottnawi
npm/[email protected] None 0 45.3 kB goto-bus-stop
npm/[email protected] None 0 7.19 kB raynos
npm/[email protected] None 0 6.85 kB nexdrew
npm/[email protected] None 0 10 kB rase-
npm/[email protected] None +1 358 kB shoreditch-ops
npm/[email protected] None 0 45.2 kB ptejada
npm/[email protected] None 0 20 kB shoreditch-ops
npm/[email protected] environment, filesystem, shell, unsafe Transitive: network +5 2.06 MB shoreditch-ops
npm/[email protected] None 0 72 kB softonic
npm/[email protected] environment, network 0 389 kB jasonsaayman
npm/[email protected] filesystem 0 38.4 kB nicolo-ribaudo
npm/[email protected] None 0 3.1 kB mokesmokes
npm/[email protected] None 0 5.04 kB niklasvh
npm/[email protected] None 0 30.6 kB amitport
npm/[email protected] None 0 8.56 kB sindresorhus
npm/[email protected] filesystem 0 30 kB goto-bus-stop
npm/[email protected] filesystem 0 15.9 kB goto-bus-stop
npm/[email protected] filesystem, network, unsafe 0 363 kB goto-bus-stop
npm/[email protected] None 0 79.9 kB feross
npm/[email protected] None 0 3.71 kB ashaffer88
npm/[email protected] None 0 2.5 kB sindresorhus
npm/[email protected] None 0 35.7 kB johnagan
npm/[email protected] None 0 3.86 kB sindresorhus
npm/[email protected] None 0 14.2 kB sindresorhus
npm/[email protected] None 0 26.2 kB thlorenz
npm/[email protected] filesystem, shell 0 43.1 kB zhiyelee
npm/[email protected] None 0 2.43 kB tootallnate
npm/[email protected] None 0 1.65 kB coreh
npm/[email protected] None 0 6.94 kB ruyadorno
npm/[email protected] filesystem 0 30.4 kB thlorenz
npm/[email protected] None +1 104 kB evilebottnawi
npm/[email protected] None 0 3.72 kB floatdrop
npm/[email protected] None 0 1.2 MB david
npm/[email protected] None 0 668 kB david
npm/[email protected] None 0 921 kB david
npm/[email protected] None +1 3.43 MB david
npm/[email protected] None 0 8.69 kB goto-bus-stop
npm/[email protected] None 0 75.3 kB ljharb
npm/[email protected] None 0 8.45 kB satazor
npm/[email protected] None 0 10.7 kB ljharb
npm/[email protected] None 0 18.2 kB goto-bus-stop
npm/[email protected] None 0 20.8 kB bret
npm/[email protected] None 0 6.35 kB sindresorhus
npm/[email protected] eval 0 9.47 kB dbkaplun
npm/[email protected] None 0 5.69 kB sindresorhus
npm/[email protected] None 0 21.3 kB ka-weihe
npm/[email protected] environment, eval 0 98.4 kB alexgorbatchev
npm/[email protected] shell +1 146 kB isaacs
npm/[email protected] filesystem, network 0 30 kB ljharb
npm/[email protected] None 0 7.95 kB goto-bus-stop
npm/[email protected] filesystem 0 2.38 kB zhiyelee
npm/[email protected] None 0 5.01 kB darrachequesne
npm/[email protected] None 0 2.71 kB shtylman
npm/[email protected] network 0 55.7 kB delvedor
npm/[email protected] None 0 3.42 kB zertosh
npm/[email protected] None 0 4.77 kB sindresorhus
npm/[email protected] None 0 4.73 kB sindresorhus
npm/[email protected] None 0 28 kB thlorenz
npm/[email protected] None 0 33.6 kB goto-bus-stop
npm/[email protected] None 0 21.5 kB phated
npm/[email protected] None 0 3.21 kB sindresorhus
npm/[email protected] None 0 1.19 kB sindresorhus
npm/[email protected] None 0 2.6 kB sindresorhus
npm/[email protected] None 0 2.47 kB sindresorhus
npm/[email protected] None 0 4.42 kB sindresorhus
npm/[email protected] None 0 2.92 kB juliangruber
npm/[email protected] None 0 3.12 kB bryce
npm/[email protected] None 0 75 kB automatthew
npm/[email protected] None 0 427 B liclac
npm/[email protected] None 0 9.2 kB goto-bus-stop
npm/[email protected] None 0 3.02 kB sindresorhus
npm/[email protected] None 0 7.4 kB jdalton
npm/[email protected] network 0 43 kB dscape
npm/[email protected] None 0 14.7 kB jwatte
npm/[email protected] environment, filesystem +1 95.2 kB goto-bus-stop
npm/[email protected] None 0 4.35 MB ichernev
npm/[email protected] None 0 349 kB krb686
npm/[email protected] environment, shell 0 1.85 MB nodejs-foundation
npm/[email protected] None 0 61.8 kB darrachequesne
npm/[email protected] shell 0 32 kB sindresorhus
npm/[email protected] environment +2 45.4 kB sindresorhus
npm/[email protected] Transitive: network +2 29.4 kB sindresorhus
npm/[email protected] None 0 3.29 kB gal
npm/[email protected] None 0 5.91 kB gal
npm/[email protected] environment 0 18 kB tjfontaine
npm/[email protected] filesystem 0 5.64 kB sindresorhus
npm/[email protected] None 0 29.5 kB twixes
npm/[email protected] None 0 2.61 kB sindresorhus
npm/[email protected] None 0 9.92 kB beardtree
npm/[email protected] None 0 5.67 kB substack
npm/[email protected] None 0 8.64 kB phated
npm/[email protected] environment 0 81.1 kB rexxars
npm/[email protected] None 0 3.23 kB sindresorhus
npm/[email protected] None 0 8.61 kB goto-bus-stop
npm/[email protected] None 0 6.78 kB darrachequesne
npm/[email protected] None 0 7.69 kB hden
npm/[email protected] None 0 11.3 kB bryce
npm/[email protected] None 0 10.5 kB dscape
npm/[email protected] None 0 6.44 kB substack
npm/[email protected] None 0 26.8 kB jhiesey
npm/[email protected] None 0 26.1 kB goto-bus-stop
npm/[email protected] None 0 976 kB david
npm/[email protected] None 0 5.62 kB substack
npm/[email protected] eval 0 9.57 kB goto-bus-stop
npm/[email protected] environment 0 30.9 kB sindresorhus
npm/[email protected] None 0 20.8 kB jryans
npm/[email protected] filesystem 0 56 kB raszi
npm/[email protected] None 0 2.33 kB raynos
npm/[email protected] None 0 5.34 kB rrragan
npm/[email protected] None 0 2 kB goto-bus-stop
npm/[email protected] None 0 9.29 kB forbeslindesay
npm/[email protected] None 0 15.6 kB goto-bus-stop
npm/[email protected] None 0 3.45 kB sindresorhus
npm/[email protected] None 0 3.5 kB sindresorhus
npm/[email protected] environment, shell 0 13.5 kB sboudrias
npm/[email protected] None 0 3.71 kB sindresorhus
npm/[email protected] None 0 33.2 kB defunctzombie
npm/[email protected] environment, filesystem, unsafe 0 110 kB evilebottnawi
npm/[email protected] Transitive: filesystem +1 78.9 kB gcds
npm/[email protected] None 0 3.16 kB sindresorhus
npm/[email protected] network 0 99.6 kB lpinca
npm/[email protected] environment 0 4.08 kB sindresorhus
npm/[email protected] None 0 6.42 kB 3rdeden

View full report↗︎

Copy link

🚨 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
New author npm/[email protected] 🚫
AI-detected potential code anomaly npm/[email protected]
  • Notes: The code contains multiple security risks including unescaped user input, potential execution of malicious code, and unsanitized data flows. It should be reviewed and refactored to address these issues.
  • Confidence: 1.00
  • Severity: 0.60
⚠︎
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
Medium CVE npm/[email protected] ⚠︎
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Network access npm/[email protected] 🚫
Shell access npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
New author npm/[email protected] 🚫
Deprecated npm/[email protected]
  • Reason: Artillery v1.x is no longer supported. Please upgrade to a more recent version
⚠︎
Shell access npm/[email protected] 🚫
New author npm/[email protected] 🚫
Network access npm/[email protected] 🚫
New author npm/[email protected]
  • New Author: jwatte
  • Previous Author:
🚫
New author npm/[email protected] 🚫
Network access npm/[email protected] 🚫
New author npm/[email protected] 🚫

View full report↗︎

Next steps

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 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 a medium CVE?

Contains a medium severity Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known medium severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

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.

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 a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

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

Copy link

sonarcloud bot commented Oct 14, 2024

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.02%. Comparing base (9866480) to head (9438d69).
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1075   +/-   ##
=======================================
  Coverage   78.02%   78.02%           
=======================================
  Files         179      179           
  Lines        4164     4164           
  Branches     1023     1023           
=======================================
  Hits         3249     3249           
  Misses        915      915           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@christopherferreira9 christopherferreira9 added deploy Deploys the test dapps and removed deploy Deploys the test dapps labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant