You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Sir,
I am trying to implement the stix-java proyect but i am having lots of problems when referencing the classes. The following error is shown:
ArchiveFileExtension cannot be resolved to a type
in the src\main\java\io\digitalstate\stix\coo\extension\types\ArchiveFileExtensionExt.java
I also have the same problem with other classes like Artifact, AttackPattern, AutonomousSystem, etc
could you help me to solve this problem
Many thanks in advance
Ana
Hello Sephen,
Could it be possible that the missing classes like AttackPattern are the Domain Objects ? I am trying to use the code and trying to guess what is missing
thank you in advance
Hello Stephen,
thank you for taking time to answer my questions.
the problem that I have is that the AttackPattern class is missing
[image: image.png]
/**
* attack-pattern
* <p>
* Attack Patterns are a type of TTP that describe ways that adversaries
attempt to compromise targets.
*
*/
@Value.Immutable @Serial.Version(1L)
@DefaultTypeValue(value = "attack-pattern", groups =
{DefaultValuesProcessor.class})
@value.Style(typeAbstract="*Sdo", typeImmutable="*", validationMethod =
Value.Style.ValidationMethod.NONE, additionalJsonAnnotations =
{JsonTypeName.class}, depluralize = true)
@JsonTypeName("attack-pattern")
*@JsonSerialize(as = AttackPattern.class) @JsonDeserialize(builder =
AttackPattern.Builder.class)*
@JsonPropertyOrder({"type", "id", "created_by_ref", "created",
"modified", "revoked", "labels", "external_references",
"object_marking_refs", "granular_markings",
"name", "description", "kill_chain_phases"})
@redactable
public interface AttackPatternSdo extends DomainObject {
@notblank@JsonProperty("name")
@JsonPropertyDescription("The name used to identify the Attack
Pattern.")
@redactable(useMask = true)
String getName();
@JsonProperty("description")
@JsonInclude(value = NON_EMPTY, content= NON_EMPTY)
@JsonPropertyDescription("A description that provides more details and
context about the Attack Pattern, potentially including its purpose and its
key characteristics.")
@redactable
Optional<String> getDescription();
@JsonProperty("kill_chain_phases")
@JsonInclude(value = NON_EMPTY, content= NON_EMPTY)
@JsonPropertyDescription("The list of kill chain phases for which this
attack pattern is used.")
@redactable
Set<KillChainPhaseType> getKillChainPhases();
}
I have searched in the repository in case I did something wrong at the time
of cloning but i can not find it
¿do i have to build the class with the AttackPattern attributes ?
kind regards
Ana
Hello Stephen,
the missing class I am referring to is *AttackPattern.class.*
*but this is just one of them, there are others like
*ArchiveFileExtension,
Artifact.class,AttackPattern.class,AutonomousSystem.class
that are also missing
[image: image.png]
I have been tracing the commits to see where the classes were omitted and I
found that, for example in the commit
c15b925 [c15b925]
the class Bundle was removed but this class is still been use
Activity
hadesgrid commentedon Jun 7, 2021
Hello Sephen,
Could it be possible that the missing classes like AttackPattern are the Domain Objects ? I am trying to use the code and trying to guess what is missing
thank you in advance
StephenOTT commentedon Jun 7, 2021
Can you post a snippet of your code/class you are building.
Attack pattern is a Domain Object as per: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36
hadesgrid commentedon Jun 10, 2021
StephenOTT commentedon Jun 10, 2021
If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.
Which branch did you clone from?
hadesgrid commentedon Jun 11, 2021
hadesgrid commentedon Jun 11, 2021
hadesgrid commentedon Jun 11, 2021