Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect/analyzer: add more details for tcp_mss - v4 #9776

Closed
wants to merge 1 commit into from

Conversation

0xEniola
Copy link
Contributor

Link to redmine ticket: https://redmine.openinfosecfoundation.org/issues/6355

Previous PR: #9774

Describe changes:

  • Fixed CI error; there was a compile warning on one of the changed files.

Output:

{
  "raw": "alert tcp any any -> any any (msg: "Testing mss"; tcp.mss: 123-456; sid: 4;)",
  "id": 4,
  "gid": 1,
  "rev": 0,
  "msg": "Testing mss",
  "app_proto": "unknown",
  "requirements": [],
  "type": "pkt",
  "flags": [
    "src_any",
    "dst_any",
    "sp_any",
    "dp_any",
    "need_packet",
    "toserver",
    "toclient"
  ],
  "pkt_engines": [
    {
      "name": "packet",
      "is_mpm": false
    }
  ],
  "frame_engines": [],
  "lists": {
    "packet": {
      "matches": [
        {
          "name": "tcp.mss",
          "tcp_mss": {
            "operand": "range",
            "min": 123,
            "max": 456
          }
        }
      ]
    }
  }
}
{
  "raw": "alert tcp any any -> any any (msg: "Testing mss"; tcp.mss: >=439; sid: 5;)",
  "id": 5,
  "gid": 1,
  "rev": 0,
  "msg": "Testing mss",
  "app_proto": "unknown",
  "requirements": [],
  "type": "pkt",
  "flags": [
    "src_any",
    "dst_any",
    "sp_any",
    "dp_any",
    "need_packet",
    "toserver",
    "toclient"
  ],
  "pkt_engines": [
    {
      "name": "packet",
      "is_mpm": false
    }
  ],
  "frame_engines": [],
  "lists": {
    "packet": {
      "matches": [
        {
          "name": "tcp.mss",
          "tcp_mss": {
            "operand": "greater than or equal to",
            "value": 439
          }
        }
      ]
    }
  }
}
SV_BRANCH=https://github.com/OISF/suricata-verify/pull/1461

Add more details to the tcp.mss keyword engine analysis output
Issue: OISF#6355
Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Merging #9776 (af87a35) into master (b6cd66f) will decrease coverage by 0.05%.
The diff coverage is 93.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9776      +/-   ##
==========================================
- Coverage   82.40%   82.36%   -0.05%     
==========================================
  Files         968      968              
  Lines      273871   273901      +30     
==========================================
- Hits       225695   225585     -110     
- Misses      48176    48316     +140     
Flag Coverage Δ
fuzzcorpus 64.26% <0.00%> (-0.10%) ⬇️
suricata-verify 60.96% <93.33%> (-0.04%) ⬇️
unittests 62.93% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@jufajardini jufajardini added the outreachy Contributions made by Outreachy applicants label Nov 13, 2023
Copy link
Contributor

@jufajardini jufajardini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xEniola
Copy link
Contributor Author

I like how this is looking! :)

Imho, we're only missing addressing:

Thank you for catching that again.

It skipped my mind.
I'll sort that now.

@0xEniola 0xEniola closed this Nov 13, 2023
@0xEniola 0xEniola deleted the tcp-mss-keyword-6355-v4 branch February 9, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outreachy Contributions made by Outreachy applicants
Development

Successfully merging this pull request may close these issues.

2 participants