Comments (2)
I'm going to close this as there hasn't been any updates for a few months. Please feel free to reopen it or file a new issue if the above suggestion did not work for you. Thanks!
from cti-stix-validator.
Hi, @infosec-alchemist! The STIX 2.0 Patterning Spec specifies that in a string the backslash character must be followed by another backslash or an apostrophe. You'll need to escape your backslashes. The following passes the pattern validator for me:
[email-addr:value MATCHES '.+\\@IBM\\.com$' OR file:name MATCHES '^Final Report.+\\.exe$']
Note that the pattern will need another layer of escaping for JSON. So in the actual JSON given to the STIX validator, each instance of the backslash from your original pattern would need to be '\\\\'
.
from cti-stix-validator.
Related Issues (20)
- Unclear Artifact error message
- [CS03] location.administrative_area SHOULD contain valid 3166-2 code
- [CS03] software.languages must be RFC5646
- [CS03] Network Traffic Protocol Property and Extensions
- SDOs should not be allowed in in Observed Data's object_refs property
- 2.1 validator does not handle top-level extension definition properly HOT 5
- malware-analysis schema requires 'result', spec says 'av_result'. HOT 1
- windows-registry-key SCO doesn't have to start with a hive portion
- STIX Cyber-observable Objects SHOULD use UUIDv5. It is not a MUST. HOT 1
- SCOs are allowed in Observable Containers as per Section 2.13 of the spec - so the validator must allow it HOT 1
- KeyError Exceptions in validate_instance HOT 3
- Get string representation of validation results the way print_results() displays HOT 1
- UUIDv5 validation HOT 2
- draft7_format_checker is deprecated HOT 13
- 3.1.0 missing schemas HOT 3
- Better warning messages for open vocabs and relationship types
- Enhanced Interoperability Support
- TAXII Support?
- HTTPSConnectionPool Fatal Error HOT 1
- RefResolver deprecated HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cti-stix-validator.