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/inject risk alert #158

Closed
wants to merge 9 commits into from
Closed

Feat/inject risk alert #158

wants to merge 9 commits into from

Conversation

originalix
Copy link
Contributor

No description provided.

commit 6228efb
Author: Leon <[email protected]>
Date:   Thu Feb 15 22:45:46 2024 +0800

    feat: Add $walletConnect scope

commit 7fe9da0
Author: Leon <[email protected]>
Date:   Thu Feb 1 20:20:37 2024 +0800

    chore: update version

commit a4284b2
Author: Leon <[email protected]>
Date:   Thu Feb 1 20:17:47 2024 +0800

    chore: add type

commit cfbb428
Author: Leon <[email protected]>
Date:   Fri Jan 19 15:34:04 2024 +0800

    Update Node version in package.json and add targetOrigin parameter to requestToAllCS method
@originalix originalix marked this pull request as draft March 14, 2024 09:39
Copy link

socket-security bot commented Mar 14, 2024

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

Package New capabilities Transitives Size Publisher
npm/@jridgewell/[email protected] None 0 40 kB jridgewell
npm/@mysten/[email protected] Transitive: network +25 7.09 MB ebmifa
npm/@noble/[email protected] None 0 1.35 MB paulmillr
npm/@noble/[email protected] None 0 747 kB paulmillr
npm/@onekeyfe/[email protected] environment +4 1.69 MB 1keyfe
npm/@onekeyfe/[email protected] None 0 51.2 kB 1keyfe
npm/@onekeyfe/[email protected] None 0 19.3 kB 1keyfe
npm/@onekeyfe/[email protected] None 0 19 kB 1keyfe
npm/@onekeyfe/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +398 156 MB 1keyfe
npm/@onekeyfe/[email protected] None 0 14.4 kB 1keyfe
npm/@scure/[email protected] None 0 77.8 kB paulmillr
npm/@types/[email protected] None 0 24 kB types
npm/@types/[email protected] None 0 32.2 kB types
npm/@types/[email protected] None 0 3.54 MB types
npm/@types/[email protected] None 0 6.67 kB types
npm/[email protected] None 0 466 kB marijn
npm/[email protected] eval +5 1.48 MB esp
npm/[email protected] filesystem Transitive: environment, unsafe +40 5.57 MB nicolo-ribaudo
npm/[email protected] filesystem, unsafe Transitive: environment +9 163 kB jdalton
npm/[email protected] None +2 108 kB feross
npm/[email protected] None 0 23.2 kB isaacs
npm/[email protected] None 0 5.69 kB sindresorhus
npm/[email protected] None 0 194 kB kilianvalkhof
npm/[email protected] None 0 165 kB sokra
npm/[email protected] environment, filesystem 0 32.5 kB isaacs
npm/[email protected] filesystem 0 10 kB sindresorhus
npm/[email protected] None 0 33.2 kB substack
npm/[email protected] filesystem 0 7.53 kB isaacs
npm/[email protected] environment, filesystem 0 107 kB isaacs
npm/[email protected] Transitive: filesystem +6 45.9 kB sindresorhus
npm/[email protected] None 0 46.9 kB sokra
npm/[email protected] filesystem +12 32.9 MB johnnyreilly
npm/[email protected] None 0 116 kB ctavan
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +25 870 kB evilebottnawi
npm/[email protected] None +6 134 kB bebraw
npm/[email protected] environment, filesystem, network, unsafe Transitive: eval, shell +45 9.64 MB sokra

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@onekeyfe/[email protected], npm/@onekeyfe/[email protected], npm/@onekeyfe/[email protected], npm/@onekeyfe/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Mar 14, 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 NoteSource
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
Install scripts npm/[email protected]
  • Install script: install
  • Source: npm run rebuild || echo "Couldn't build bindings. Non-native version used."
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: echo "Web3.js 4.x alpha has been released for early testing and feedback. Checkout doc at https://docs.web3js.org/ "
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: echo "WARNING: the web3-bzz api will be deprecated in the next version"
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: echo "WARNING: the web3-shh api will be deprecated in the next version"
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
Protestware/Troll package npm/[email protected]
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package my come along with functionality unrelated to its primary purpose.

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

…vider into feat/inject-risk-alert

# Conflicts:
#	packages/core/package.json
#	packages/desktop/desktop-bridge-injected/package.json
#	packages/empty/package.json
#	packages/errors/package.json
#	packages/events/package.json
#	packages/example/package.json
#	packages/extension/extension-bridge-hosted/package.json
#	packages/extension/extension-bridge-injected/package.json
#	packages/injected/package.json
#	packages/native/native-bridge-injected/package.json
#	packages/providers/inpage-providers-hub/package.json
#	packages/providers/onekey-aptos-provider/package.json
#	packages/providers/onekey-btc-provider/package.json
#	packages/providers/onekey-cardano-provider/package.json
#	packages/providers/onekey-conflux-provider/package.json
#	packages/providers/onekey-cosmos-provider/package.json
#	packages/providers/onekey-eth-provider/package.json
#	packages/providers/onekey-near-provider/package.json
#	packages/providers/onekey-nostr-provider/package.json
#	packages/providers/onekey-polkadot-provider/package.json
#	packages/providers/onekey-private-provider/package.json
#	packages/providers/onekey-solana-provider/package.json
#	packages/providers/onekey-starcoin-provider/package.json
#	packages/providers/onekey-sui-provider/package.json
#	packages/providers/onekey-tron-provider/package.json
#	packages/providers/onekey-webln-provider/package.json
#	packages/types/package.json
#	packages/webview/package.json
@originalix originalix closed this Jun 20, 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