stixview icon indicating copy to clipboard operation
stixview copied to clipboard

Nested `_ref` and `refs` objects not detected as edges

Open himynamesdave opened this issue 4 months ago • 0 comments

Inside objects we have top level references, e.g. object_marking_refs (aka embedded relationships)

There currently render as edges on the graph.

However, it is possible that nested ref or refs exist. For example,

{
  "execution_time": "2020-08-14T04:55:37Z",
  "extensions": {
    "extension-definition--151d042d-4dcf-5e44-843f-1024440318e5": {
      "extension_type": "new-sco"
    }
  },
  "fee": "0.0005913",
  "hash": "192312a4527555bc7a1c63168b9583d4f05ec99af7f0548a903641070cffdf08",
  "id": "cryptocurrency-transaction--e2593094-110d-5582-bacb-458094ad9563",
  "input": [
    {
      "address_ref": "cryptocurrency-wallet--d36e5ec7-b2b3-52d8-bb3b-5317ae3f8089",
      "amount": 0.00850153
    }
  ],
  "output": [
    {
      "address_ref": "cryptocurrency-wallet--8361738f-1599-524b-ab9e-c0ae3fb45655",
      "amount": 11.45834558
    }
  ],
  "spec_version": "2.1",
  "symbol": "BTC",
  "type": "cryptocurrency-transaction"
},
{
  "address": "3Cwgr2g7vsi1bXDUkpEnVoRLA9w4FZfC69",
  "extensions": {
    "extension-definition--be78509e-6958-51b1-8b26-d17ee0eba2d7": {
      "extension_type": "new-sco"
    }
  },
  "id": "cryptocurrency-wallet--8361738f-1599-524b-ab9e-c0ae3fb45655",
  "spec_version": "2.1",
  "type": "cryptocurrency-wallet"
}

Here we have input.address_ref and output.address_ref

Currently, stixview will not render any embedded relationships below the root level of the object like shown in the example.

Expected, should render edges for any embedded relationship, no matter how deep.

himynamesdave avatar Sep 04 '25 08:09 himynamesdave