-
Notifications
You must be signed in to change notification settings - Fork 13
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
resolved to a type #110
Comments
Hello Sephen, |
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 |
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
…On Mon, Jun 7, 2021 at 1:26 PM Stephen Russett ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHLGNKG2QNO45BR3WY4FGFLTRSUE7ANCNFSM456IO6MA>
.
|
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? |
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]
…On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett ***@***.***> wrote:
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?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA>
.
|
sorry the branch i have check out is
dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final
<https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final>
dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final
<https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final>
Regards
Ana
…On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez ***@***.***> wrote:
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]
On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett ***@***.***>
wrote:
> 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?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#110 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA>
> .
>
|
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
…On Fri, Jun 11, 2021 at 8:23 AM Ana Gutierrez ***@***.***> wrote:
sorry the branch i have check out is
dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final
<https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final>
dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final
<https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final>
Regards
Ana
On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez ***@***.***> wrote:
> 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]
>
> On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett ***@***.***>
> wrote:
>
>> 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?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#110 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA>
>> .
>>
>
|
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
The text was updated successfully, but these errors were encountered: