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.
grafap (graph-wrap) is a Python package for interacting with the Microsoft Graph API, primarily sharepoint lists. Creating new items, querying lists, etc.
pip install grafap
Several environment variables are required for grafap to function. Most of the endpoints in grafap are just using the standard Microsoft Graph API which only requires a client ID and secret.
The Sharepoint REST API, however requires using a client certificate. The Sharepoint REST API is currently only used for the following functions. If you're not using them, then you don't need the certificate or the other env vars in the Sharepoint REST API table. Only the vars in the Graph table.
Env Variable | Description |
---|---|
GRAPH_LOGIN_BASE_URL | Should be https://login.microsoftonline.com/ |
GRAPH_BASE_URL | Should be https://graph.microsoft.com/v1.0/sites/ |
GRAPH_TENANT_ID | Tenant ID from app registration created in Azure. |
GRAPH_CLIENT_ID | Client ID from app registration created in Azure. |
GRAPH_CLIENT_SECRET | Client secret from app registration created in Azure. |
GRAPH_GRANT_TYPE | Should be 'client_credentials' |
GRAPH_SCOPES | Should typically be https://graph.microsoft.com/.default unless using more fine-grained permissions. |
Env Variable | Description |
---|---|
SP_SITE | Base Site URL you're interacting with. Should be https://DOMAIN.sharepoint.com/ |
SP_SCOPES | Scopes for sharepoint rest API. Should look like <https://{tenant name}.sharepoint.com/.default> |
SP_LOGIN_BASE_URL | Should be https://login.microsoftonline.com/ |
SP_TENANT_ID | Tenant ID from app registration created in Azure. |
SP_CLIENT_ID | Client ID from app registration created in Azure. |
SP_GRANT_TYPE | client_credentials |
SP_CERTIFICATE_PATH | Path to .pfx file |
SP_CERTIFICATE_PASSWORD | Password for the .pfx file. |
A few examples of using grafap functions have been added in tests/test.py
FAQs
Python package that acts as a wrapper for the Microsoft Graph API.
We found that grafap 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.