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.
Python traceable agent requires Python >= 3.7
Additionally, to use the traceable filter, you must be on a supported OS.
There are two ways to instrument your application, auto-instrumentation and code based instrumentation.
Simply prepend traceableai-instrument
to your applications startup command.
ex: traceableai-instrument flask run
Add the following snippet to your python apps entrypoint file:
from traceableai.agent import Agent
app = Flask(__name__)
agent = Agent()
agent.instrument(app) # This will instrument the flask app + any other modules that are supported
agent.add_traceable_filter() # add the traceable filter to enable blocking
# Create a virtual env & install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -r dev-requirements.txt
Note: if you run into an error installing grpc:
File "/Users/user/.pyenv/versions/3.9.4/lib/python3.9/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command '/usr/bin/clang' failed with exit code 1
prepend this env var to the above pip install command:
GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true
pip install -r requirements.txt
python3 -m build
traceableai-instrument your_startup_command
# ex: traceableai-instrument flask run -p 5000
libtraceable.h
header file if it has changed../src/download.py
and update the constant LIBTRACEABLE_VERSION
.docker/test_apps
. It will fail to build if libtraceable cannot be downloaded.git submodule update --init --recursive
./scripts/build_proto.sh
build_artifacts.sh
builds all the whl files. Intentionally use the CIBW_SKIP
environment variable to skip versions to save time. The example below only tests on 3.6.
CIBW_SKIP="*37* *38* *39* *310*" ./build_artifacts.sh
docker build -f docker/test_apps/unittest.Dockerfile -t pythonunittest .
docker run --rm pythonunittest
docker/test_apps/
.FAQs
Traceable.ai Python Agent
We found that traceable-agent 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.
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.