Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@sigstore/oci
Advanced tools
Attach artifacts to images in OCI registries.
npm install @sigstore/oci
const { attachArtifactToImage } = require('@sigstore/oci');
import { attachArtifactToImage } from '@sigstore/oci';
Uploads the provided artifact to the registry and associates it with an OCI image.
options
Object
artifact
Buffer
: Bytes of the artifact to upload.mediaType
string
: Content type to assign to the artifact.imageName
string
: Fully-qualified name of the image to which the artifact should be associated.imageDigest
string
: Digest of the image to which the artifact should be associated. Should be of the form <alg>:<digest>
.credentials
Object
username
string
: Username to use when authenticating with the registry.password
string
: Password to use when authenticating with the registry.annotations
Record<string, string>
: Arbitrary name/value pairs to be associated with artifact.Reads the local $HOME/.docker/config.json
file and returns the credentials associated with the image's registry.
imageName
string
: Fully-qualified name of the image from which to extract the registry hostname.Returns a Credentials
object with the following keys:
username
string
password
string
Throws if the Docker config cannot be located or if there are no credentials for the specified registry.
FAQs
OCI artifact support
We found that @sigstore/oci demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.