
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
This is a Ruby version of gfx/p5-Data-Validator + xaicron/p5-Data-Validator-Recursive.
Compare below versus https://metacpan.org/pod/Data::Validator
rule = Data::Validator.new(
'uri' => { isa: String, xor: %w(schema host path_query) },
'schema' => { isa: String, default: 'http' },
'host' => { isa: String },
'path_query' => { isa: String, default: '/' },
'method' => { isa: String, default: 'GET' },
)
args = rule.validate('uri' => 'http://example.com')
and below versus https://metacpan.org/pod/Data::Validator::Recursive
# create a new rule
rule = Data::Validator::Recursive.new(
'foo' => String,
'bar' => { isa: Integer },
'baz' => {
isa: Hash, # default
rule: {
'hoge' => { isa: String, optional: 1 },
'fuga' => Integer
},
},
)
# input data for validation
input = {
'foo' => 'hoge',
'bar' => 1192,
'baz' => {
'hoge' => 'kamakura',
'fuga' => 1185,
},
}
# do validation
params = rule.validate(input) # raises automatically on error
Data::Validator is recursive by default. There is no such thing like a nonrecursive validator.->with('Method') does not make sense to us, so not supported.does also does not make sense. Not supported.->with('Sequenced').xor; all examples seems illustravive to me. Other validators like JSON Schema (cf zigorou/perl-JSV) do not have this. This lack of understanding can negatively impact.FAQs
Unknown package
We found that data-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.