loom
play

Loom Weaving Instrumentation for Program Analysis Brian Kidney - PowerPoint PPT Presentation

Loom Weaving Instrumentation for Program Analysis Brian Kidney (Presenter) Jonathan Anderson Memorial University But Instrumentation is done, right? Why another instrumentation tool There are lots of instrumentation tools Intel


  1. Loom Weaving Instrumentation for Program Analysis Brian Kidney (Presenter) Jonathan Anderson Memorial University

  2. But Instrumentation is done, right?

  3. Why another instrumentation tool ● There are lots of instrumentation tools ○ Intel Pin, XRay, CSI, DTrace… ● Most tools focus on performance ● We needed something different ○ No custom compiler frontend or backend ○ “Non-traditional” instrumentation ○ The ability to transform code when needed ● Our focus was security ○ We wanted something more general-purpose

  4. What if you wanted to instrument every PAM Authentication?

  5. Instrumenting PAM And you could do it with this: strategy: callout dtrace: userspace functions: - callee: [entry] metadata: name: auth id: 1 name: pam_authenticate

  6. Instrumenting PAM And you could do it with this: And you get this: strategy: callout dtrace: script './pam.d' matched 6 probes CPU ID FUNCTION:NAME dtrace: userspace 2 61725 none:dt-probe functions: Pam Authentication - execname: sshd, user: bkidney - callee: [entry] 0 61725 none:dt-probe metadata: Pam Authentication - execname: sshd, user: steve name: auth 2 61725 none:dt-probe Pam Authentication - execname: sshd, user: badguy id: 1 name: pam_authenticate

  7. What if you wanted to transform system calls for provenance instrumentation?

  8. llvm-prov ● Too complex an application for the policy file ● Transforms system call API to new API ● Domain specific logic to determine code of interest ● Loom emits code transformation

  9. Loom ● Simple Policy files to apply instrumentation without code modification ● Framework to build custom tools when you need more

  10. Loom ● Simple Policy files to apply instrumentation Currently supports instrumenting: without code modification ● Struct fields ● Framework to build custom tools when you ● Functions need more ○ Callee / Caller ● Global Variables ● Pointer Instructions Supported Outputs: ● Logging ○ KTrace, DTrace, Text, Json, XML ● Code transformation

  11. Loom ● Simple Policy files to apply instrumentation Currently supports instrumenting: without code modification ● Struct fields ● Framework to build custom tools when you ● Functions need more ○ Callee / Caller ● Global Variables ● Pointer Instructions ● Work has started on instrumentation Supported Outputs: language ○ DAG matching for code transformation ● Logging ○ KTrace, DTrace, Text, Json, XML ● Code transformation

  12. Come see more during poster session!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend