Back to Search
Start Over
Short Paper: Weak Runtime-Irrelevant Typing for Security
- Source :
- Proceedings of the 15th Workshop on Programming Languages and Analysis for Security.
- Publication Year :
- 2020
- Publisher :
- ACM, 2020.
-
Abstract
- Types indexed with extra type-level information are a powerful tool for statically enforcing domain-specific security properties. In many cases, this extra information is runtime-irrelevant, and so it can be completely erased at compile-time without degrading the performance of the compiled code. In practice, however, the added bureaucracy often disrupts the development process, as programmers must completely adhere to new complex constraints in order to even compile their code.In this work we present WRIT, a plugin for the GHC Haskell compiler that relaxes the type checking process in the presence of runtime-irrelevant constraints. In particular, WRIT can automatically coerce between runtime equivalent types, allowing users to run programs even in the presence of some classes of type errors. This allows us to gradually secure our code while still being able to compile at each step, separating security concerns from functional correctness.Moreover, we present a novel way to specify which types should be considered equivalent for the purpose of allowing the program to run, how ambiguity at the type level should be resolved and which constraints can be safely ignored and turned into warnings.
- Subjects :
- Process (engineering)
Programming language
Computer science
Writ
media_common.quotation_subject
020207 software engineering
02 engineering and technology
Ambiguity
computer.software_genre
0202 electrical engineering, electronic engineering, information engineering
Code (cryptography)
020201 artificial intelligence & image processing
Haskell
Plug-in
Compiler
computer
Compiled language
computer.programming_language
media_common
Subjects
Details
- Database :
- OpenAIRE
- Journal :
- Proceedings of the 15th Workshop on Programming Languages and Analysis for Security
- Accession number :
- edsair.doi...........578c0e373784b6090f50e61688a792c0
- Full Text :
- https://doi.org/10.1145/3411506.3417595