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.
Set of static assets used (mainly) for ARCHE data preprocessing or ARCHE information pages:
AcdhArcheAssets/uriNormRules.json
)AcdhArcheAssets/formats.json
)The repository provides also Python 3 and PHP bindings for accessing those assets.
pip3 install acdh-arche-assets
from AcdhArcheAssets.uri_norm_rules import get_rules, get_normalized_uri, get_norm_id
print(f"{get_rules()}")
wrong_id = "http://sws.geonames.org/1232324343/linz.html"
good_id = get_normalized_uri(wrong_id)
print(good_id)
# "https://sws.geonames.org/1232324343/"
# extract ID from URL
norm_id = get_norm_id("http://sws.geonames.org/1232324343/linz.html")
print(norm_id)
# "1232324343"
from AcdhArcheAssets.file_formats import get_formats, get_by_mtype, get_by_extension
formats = get_formats()
matching_mapping = get_by_mtype('image/png')
matching_mapping = get_by_extension('png')
composer require acdh-oeaw/arche-assets
require_once 'vendor/autoload.php';
print_r(acdhOeaw\UriNormRules::getRules());
print_r(acdhOeaw\UriNormRules::getRules(['viaf', 'gnd']));
print_r(acdhOeaw\ArcheFileFormats::getAll();
print_r(acdhOeaw\ArcheFileFormats::getByMime('application/json');
print_r(acdhOeaw\ArcheFileFormats::getByExtension('application/json');
Each rule consists of five properties:
name
: a rule namematch
: a regular expression matching a given URI namespacereplace
: a regular expression replace expression normalizing an URI in a given namespaceresolve
: a regular expression replace expression transforming an URI in a given namespace to an URL fetching an RDF dataformat
: a RDF serialization format to be requested while resolving the URL produced using the resolve
fieldA curated and growing list of file extensions. For each file extension mappings to the respective ARCHE Resource Type Category (stored in acdh:hasCategory
) and Media Type (MIME type) (stored in acdh:hasFormat
) are given. The indicated Media Type should only be used as a fallback; it is best practice to rely on automated Media Type detection based on file signatures.
Further information is provided as well.
install needed developement packages pip install requirements_dev.txt
tox
coverage run setup.py test
and coverage html
flake8
FAQs
A set of static assets used (mainly) for ARCHE data preprocessing
We found that acdh-arche-assets 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.