Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This is a simple parser for CREMUL payment transaction files written in Ruby. It parses the CREMUL file and creates a Ruby object structure corresponding to the elements in the file.
The parser is currently not a complete parser for all kinds of CREMUl files, but is being developed further as needed in an ongoing project for a Norwegian customer.
Here are som useful references regarding the CREMUL file format:
Add this line to your application's Gemfile:
gem 'cremul-parser'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install cremul-parser
require 'cremul_parser'
f = File.open(<CREMUL-file>)
parser = CremulParser.new
parser.parse(f)
f.close
or if the file is not utf-8 encoded
f = File.open(<CREMUL-file>)
parser = CremulParser.new
parser.parse(f, <encoding>) # for instance 'ISO-8859-1'
f.close
A file may contain one or more Cremul messages. A Cremul message consists of 'message segments'. Each segment starts with a Cremul keyword. A group of segments make up a logical element of the Cremul message. The overall logical structure of a Cremul file is as follows:
[ Cremul file ] 1 --- * [ Cremul message ] 1 --- * [ Line ] 1 --- * [ Payment TX ]
See the parser_test.rb
file for more details.
Copyright (c) 2014 Per Spilling (per@kodemaker.no). See LICENSE.txt for details.
FAQs
Unknown package
We found that cremul-parser demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.