Giter Site home page Giter Site logo

Comments (5)

ajvb avatar ajvb commented on May 24, 2024 1

@adrianosela No, I think that it should be persisted outside of the context of foxsec-pipeline alerts. To be more explicit, we should persist the com.amazonaws.services.guardduty.model.Finding parsed within

public class GuardDuty extends PayloadBase implements Serializable {
private static final long serialVersionUID = 1L;
private static final String CLOUDWATCH_EVENT_SOURCE = "aws.guardduty";
private static ObjectMapper mapper =
new ObjectMapper()
// our input JSON may have properties not represented in {@link Finding} e.g. ignore
// errors such as 'Unrecognized field "affectedResources"....'
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
private Finding gdf;

to it's own BigQuery table or to GCS.

from foxsec-pipeline.

ajvb avatar ajvb commented on May 24, 2024 1

Let's just do Guardduty. For ETD, we can use CSCC.

I'd base it off of https://github.com/mozilla-services/foxsec-pipeline/blob/master/src/main/java/com/mozilla/secops/OutputOptions.java#L23-L26 and https://github.com/mozilla-services/foxsec-pipeline/blob/master/src/main/java/com/mozilla/secops/CompositeOutput.java#L88-L107

So you should probably just be able to use org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO for this.

from foxsec-pipeline.

adrianosela avatar adrianosela commented on May 24, 2024

The "payload" field in my alerts is still empty (null), would this be a good place to throw the raw events? @ajvb

cc:// @ameihm0912

from foxsec-pipeline.

adrianosela avatar adrianosela commented on May 24, 2024

Gotcha, will implement a "Persistor" transform for each of ETD and GD. Will take the target BQ as an argument i.e. --persistETDFindingsBigQuery and --persistGDFindingsBigQuery and store them separately.

Does this sound like a reasonable approach? @ajvb @ameihm0912

Also, what should the behavior be if the user fails to provide these arguments? Run anyways and not persist, or die on deploy?

from foxsec-pipeline.

adrianosela avatar adrianosela commented on May 24, 2024

Closing in favor of #229 @ajvb

from foxsec-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.