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.
sarvevents is a simple ruby gem that makes it easier to parse data from a recordings events.xml file.
This gem is currently being used on the recording server to parse events and build meeting dashboards.
bundle install --path vendor/bundle
Copy an events.xml
file into testdata/
dir.
bundle exec ruby example.rb testdata/events.xml
Add this line to your application's Gemfile:
gem 'sarvevents'
And then execute:
$ bundle
require 'sarvevents'
# Parse the recording's events.xml.
recording = SARVEvents.parse("events.xml")
# Access recording data.
recording.metadata
recording.meeting_id
# Retrieve start, finish time objects or total duration in seconds.
recording.start
recording.finish
recording.duration
# Returns a list of Attendee objects.
recording.attendees
recording.moderators
recording.viewers
# Returns a list of Poll objects.
recording.polls
recording.published_polls
recording.unpublished_polls
# Returns a list of upload files (names only).
recording.files
# Generate a CSV file with the data.
recording.create_csv("data.csv")
# Grab attendee info.
attendee.name
attendee.moderator?
# Fetch initial join, last leave, or total duration.
attendee.duration
attendee.joined
attendee.left
# Fetch all recorded join/leave times.
attendee.joins
attendee.leaves
# View attendee engagement.
attendee.engagement
# => {
# :chats => 11,
# :talks => 7,
# :raisehand => 2,
# :emojis => 5,
# :poll_votes => 2,
# :talk_time => 42
# }
# Determine if poll is published.
poll.published?
# Determine when the poll started.
poll.start
# Returns an Array containing possible options.
poll.options
# Returns a Hash mapping user_id's to their poll votes.
poll.votes
The gem is available as open source under the terms of the LGPL 3.0 License.
FAQs
Unknown package
We found that sarvevents 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.
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.